Issue building from newly cloned repository
leighghunt opened this issue · 2 comments
Not sure if this is just me, so close if necessary.
When cloning repository and trying to build in Visual Studio 2012 (v 11.0.50727.1 RTMREL), the ArcGIS.ServiceModel and ArcGIS.Test projects fail to load.
Error:
C:\dev\ArcGIS.PCL\ArcGIS.ServiceModel\ArcGIS.ServiceModel.csproj : error : The imported project "C:\dev\ArcGIS.PCL\packages\Microsoft.Bcl.Build.1.0.7\tools\Microsoft.Bcl.Build.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. C:\dev\ArcGIS.PCL\ArcGIS.ServiceModel\ArcGIS.ServiceModel.csproj
C:\dev\ArcGIS.PCL\ArcGIS.Test\ArcGIS.Test.csproj : error : The imported project "C:\dev\ArcGIS.PCL\packages\Microsoft.Bcl.Build.1.0.7\tools\Microsoft.Bcl.Build.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. C:\dev\ArcGIS.PCL\ArcGIS.Test\ArcGIS.Test.csproj
Workaround
Removing the following lines from the respective .csproj files resolves this issue and allows me to build...
<Import Project="..\packages\Microsoft.Bcl.Build.1.0.7\tools\Microsoft.Bcl.Build.targets" />
...however 10 out of 14 tests then fail for an assembly load failure.
After successful build, adding the above line back into the .csproj file no longer causes the project load failure, and also allows most of the tests to pass.
Yea there's a problem with NuGet package restore that the Bcl library causes. There was an initial fix done for that but I may have broken it again. It shouldn't be an issue once the NuGet Package Explorer 2.7 is out.
If you remove the references for
<package id="Microsoft.Bcl" version="1.1.0-beta" targetFramework="portable-win+net45+sl40+wp71" />
<package id="Microsoft.Bcl.Async" version="1.0.16" targetFramework="portable-win+net45+sl40+wp71" />
<package id="Microsoft.Bcl.Build" version="1.0.7" targetFramework="portable-win+net45+sl40+wp71" />
<package id="Microsoft.Net.Http" version="2.2.7-beta" targetFramework="portable-win+net45+sl40+wp71" />
then re-add them it resolves the problem.