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 +3420d 23h 54m
Italy 62d 23h 05m
Parker's 9th birthday 80d 13h 20m
My next birthday 161d 17h 25m
Categories
Aviation (357) Baseball (110) Best Bars (10) Biking (44) Chicago (966) Cubs (198) Duke (133) Geography (352) Higher Ground (5) Jokes (284) Kitchen Sink (688) London (65) Parker (198) Daily (204) Photography (148) Politics (304) US (1125) World (272) Raleigh (21) Readings (8) Religion (67) San Francisco (93) Software (210) Blogs (82) Business (241) Cloud (90) Cool links (146) Security (103) Travel (255) Weather (743) Astronomy (93) Windows Azure (62) Work (95) Writing (14)
Links
Archive
<March 2015>
SunMonTueWedThuFriSat
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234
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: 4733
This Year: 119
This Month: 36
This Week: 8
Comments: 0