Politics, Weather, Photography, and the Dog
Friday 7 March 2014

The test configuration earlier today wasn't the problem. It turned out that MSBuild simply didn't know it had to pull in the System.Web.Providers assembly. Fortunately, this guy suggested a way to do it. I created a new file called AssemblyInit that looks like this:

using System.Diagnostics;
using System.Web.Providers;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace MyApp
{
   public class AssemblyInit
   {
      [AssemblyInitialize]
      public void Initialize()
      {
         Trace.WriteLine("Initializing System.Web.Providers");
         var dummy = new DefaultMembershipProvider();
         Trace.WriteLine(string.Format("Instantiated {0}", dummy));
      }
   }
}

That does nothing more than create a hard reference to System.Web.Providers, causing MSBuild to affirmatively import it.

Now all my CI build works, the unit tests work, and I can go have a weekend.

Friday 7 March 2014 17:41:56 CST (UTC-06:00)  |  | Software#
Search
On this page....
No, that wasn't it at all
Countdowns
The Daily Parker +3477d 21h 37m
Italy 6d 00h 22m
IDTWHQ move 23d 00h 37m
Parker's 9th birthday 23d 15h 37m
My next birthday 104d 19h 42m
Categories
Aviation (366) Baseball (110) Best Bars (10) Biking (46) Chicago (999) Cubs (199) Duke (134) Geography (368) Higher Ground (5) Jokes (284) Kitchen Sink (709) London (70) Parker (203) Daily (204) Photography (156) Politics (307) US (1147) World (286) Raleigh (21) Readings (8) Religion (68) San Francisco (94) Software (217) Blogs (83) Business (250) Cloud (91) Cool links (152) Security (105) Travel (259) Weather (755) Astronomy (94) Windows Azure (64) Work (101) Writing (15)
Links
Archive
<May 2015>
SunMonTueWedThuFriSat
262728293012
3456789
10111213141516
17181920212223
24252627282930
31123456
Full archive
Blogroll
About
David Braverman and Parker
David Braverman is the Chief Technology Officer of Holden International in Chicago, and the creator of Weather Now. Parker is the most adorable dog on the planet, 80% of the time.
Legal
All content Copyright ©2015 David Braverman.
Creative Commons License
The Daily Parker by David Braverman is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License, excluding photographs, which may not be republished unless otherwise noted.
Admin Login
Sign In
Blog Stats
Total Posts: 4813
This Year: 199
This Month: 34
This Week: 10
Comments: 0