@@ -14,19 +14,36 @@ All other dependencies are acquired via NuGet.
1414
1515## Building
1616
17- To build this repository from the command line, you must first execute a complete NuGet package restore.
17+ To build this repository from the command line, you must first execute our init.ps1 script,
18+ which downloads NuGet 3.3.0 and uses it to restore packages.
1819Assuming your working directory is the root directory of this git repo, the command is:
1920
20- nuget restore src
21-
22- You may need to [ download NuGet.exe] [ NuGetClient ] first. ** Be sure to use nuget.exe 3.3.0** rather than
23- 3.4.4 or any version in between because these newer versions have regressions that break the build.
21+ .\init
2422
2523Everything in the repo may be built via building the solution file
2624either from Visual Studio 2015 or the command line:
2725
2826 msbuild src\ImmutableObjectGraph.sln
2927
28+ ### Important notice when developing with Visual Studio
29+
30+ The NuGet package restore functionality in Visual Studio does not work for this project, which relies
31+ on newer functionality than comes with Visual Studio 2015 Update 3. You should disable automatic
32+ package restore on build in Visual Studio in order to build successfully and have a useful Error List
33+ while developing.
34+
35+ Follow these steps to disable automatic package restore in Visual Studio:
36+
37+ 1 . Tools -> Options -> NuGet Package Manager -> General
38+ 2 . * Clear* the checkbox for "Automatically check for missing packages during build in Visual Studio
39+
40+ With this setting, you can still execute a package restore within Visual Studio by right-clicking
41+ on the _ solution_ node in Solution Explorer and clicking "Restore NuGet Packages". But do not ever
42+ execute that on this project as that will corrupt the result of ` init.ps1 ` .
43+
44+ Before developing this project in Visual Studio, or after making project or project.json changes,
45+ or to recover after Visual Studio executes a package restore, run the ` init ` script again.
46+
3047## Testing
3148
3249The Visual Studio 2015 Test Explorer will list and execute all tests.
0 commit comments