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 +3233d 22h 21m
To London 24d 23h 57m
Parker's 9th birthday 267d 14h 52m
My next birthday 348d 18h 57m
Categories
Aviation (329) Baseball (110) Best Bars (6) Biking (44) Chicago (880) Cubs (197) Duke (132) Geography (324) Higher Ground (5) Jokes (282) Kitchen Sink (631) London (45) Parker (188) Daily (204) Photography (140) Politics (302) US (1073) World (251) Raleigh (20) Readings (8) Religion (64) San Francisco (86) Software (198) Blogs (72) Business (224) Cloud (89) Cool links (131) Security (98) Travel (189) Weather (682) Astronomy (79) Windows Azure (59) Work (48) Writing (8)
Links
Archive
<September 2014>
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011
Full archive
Blogroll
About
David Braverman and Parker
David Braverman is a software developer 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 ©2014 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: 4475
This Year: 373
This Month: 28
This Week: 0
Comments: 0