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 +3300d 22h 26m
Parker's 9th birthday 200d 14h 47m
My next birthday 281d 18h 52m
Categories
Aviation (342) Baseball (110) Best Bars (7) Biking (44) Chicago (904) Cubs (197) Duke (132) Geography (334) Higher Ground (5) Jokes (285) Kitchen Sink (654) London (54) Parker (191) Daily (204) Photography (144) Politics (303) US (1085) World (253) Raleigh (21) Readings (8) Religion (66) San Francisco (88) Software (204) Blogs (75) Business (226) Cloud (90) Cool links (134) Security (98) Travel (219) Weather (694) Astronomy (86) Windows Azure (59) Work (75) Writing (8)
Links
Archive
<November 2014>
SunMonTueWedThuFriSat
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456
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: 4565
This Year: 463
This Month: 36
This Week: 7
Comments: 0