Mono.AndroidTools.AdbException: No such file or directory - xamarin.android

The First Tutorial of Xamarin is not deployed . So the Emulator shows Blank Screen . Can Any one Help me . Pls find the Build Details in VS 15 .
1>Starting deploy AVD_GalaxyNexus_ToolsForApacheCordova ...
1>Deploying AVD_GalaxyNexus_ToolsForApacheCordova ...
1>Build started.
1>C:\Program Files (x86)\MSBuild\14.0\bin\csc.exe /noconfig /nowarn:1701,1702,2008 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE;__XAMARIN_ANDROID_v1_0__;__MOBILE__;__ANDROID__;__ANDROID_1__;__ANDROID_2__;__ANDROID_3__;__ANDROID_4__;__ANDROID_5__;__ANDROID_6__;__ANDROID_7__;__ANDROID_8__;__ANDROID_9__;__ANDROID_10__;__ANDROID_11__;__ANDROID_12__;__ANDROID_13__;__ANDROID_14__;__ANDROID_15__;__ANDROID_16__;__ANDROID_17__;__ANDROID_18__;__ANDROID_19__;__ANDROID_20__;__ANDROID_21__;__ANDROID_22__;__ANDROID_23__ /errorendlocation /preferreduilang:en-US /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v6.0\Mono.Android.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.Linq.dll" /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\Phonefirst.dll /ruleset:"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\\Rule Sets\MinimumRecommendedRules.ruleset" /target:library /utf8output CodeFile1.cs MainActivity.cs PhonewordTranslator.cs Resources\Resource.Designer.cs Properties\AssemblyInfo.cs "C:\Users\Pabanas\AppData\Local\Temp\MonoAndroid,Version=v6.0.AssemblyAttributes.cs" obj\Debug\\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs obj\Debug\\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs obj\Debug\\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
1>The field 'MainActivity.count' is assigned but its value is never used
1>Phonefirst -> E:\Aims2015vesrion\Phonesoft\Phonefirst\Phonefirst\bin\Debug\Phonefirst.dll
1> Processing: obj\Debug\res\layout\main.xml
1> Processing: obj\Debug\res\values\strings.xml
******1>:Deployment failed
****1>Mono.AndroidTools.AdbException: No such file or directory
1> at Mono.AndroidTools.Util.AggregateAsyncResult.CheckError(CancellationToken token)
1> at Mono.AndroidTools.Adb.AdbSyncClient.EndPush(IAsyncResult result)
1> at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)**********
1>Deployment failed because of an internal error: No such file or directory
1>InternalError
1>Build succeeded.
1>Deploy successfully on AVD_GalaxyNexus_ToolsForApacheCordova
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========

Try running the Android SDK, emulator, Visual studio, etc. as Administrator. This fixed the issue for me, probably it is just a workaround.

Related

#nowarn "2003" doesn't disable FS2003?

The following code, compiled in a fresh console project in VS2017 (v15.2), fails to suppress the FS2003 warning (which the #nowarn directive should suppress). I'm targeting F# 4.1 (FSharp.Core 4.4.1.0). Am I missing something here?
This attribute is to be used in existing generated code, so I want to use #nowarn rather than change every F# project's settings to ignore this warning. We compile with warnings treated as errors.
open System.Reflection
#nowarn "2003"
[<assembly: AssemblyInformationalVersion("13.3.1.74-g5224f3b")>]
do() // necessary for the assembly attribute
[<EntryPoint>]
let main argv = 0
Compiler output in VS is
1>------ Rebuild All started: Project: ConsoleApplication4, Configuration: Release Any CPU ------
1> C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\fsc.exe -o:obj\Release\ConsoleApplication4.exe
1>--debug:pdbonly
1>--noframework
1>--define:TRACE
1>--doc:bin\Release\ConsoleApplication4.XML
1>--optimize+
1>--platform:anycpu32bitpreferred
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.4.1.0\FSharp.Core.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\mscorlib.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\System.Core.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\System.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\System.Numerics.dll
1>-r:C:\Users\cnichols\Documents\Visual Studio 2017\Projects\ConsoleApplication4\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Collections.Concurrent.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Collections.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.ComponentModel.Annotations.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.ComponentModel.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.ComponentModel.EventBasedAsync.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Diagnostics.Contracts.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Diagnostics.Debug.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Diagnostics.Tools.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Diagnostics.Tracing.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Dynamic.Runtime.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Globalization.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.IO.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Linq.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Linq.Expressions.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Linq.Parallel.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Linq.Queryable.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Net.NetworkInformation.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Net.Primitives.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Net.Requests.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Net.WebHeaderCollection.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.ObjectModel.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Reflection.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Reflection.Emit.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Reflection.Emit.ILGeneration.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Reflection.Emit.Lightweight.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Reflection.Extensions.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Reflection.Primitives.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Resources.ResourceManager.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Runtime.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Runtime.Extensions.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Runtime.Handles.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Runtime.InteropServices.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Runtime.InteropServices.WindowsRuntime.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Runtime.Numerics.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Runtime.Serialization.Json.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Runtime.Serialization.Primitives.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Runtime.Serialization.Xml.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Security.Principal.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.ServiceModel.Duplex.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.ServiceModel.Http.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.ServiceModel.NetTcp.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.ServiceModel.Primitives.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.ServiceModel.Security.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Text.Encoding.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Text.Encoding.Extensions.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Text.RegularExpressions.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Threading.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Threading.Tasks.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Threading.Tasks.Parallel.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Threading.Timer.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Xml.ReaderWriter.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Xml.XDocument.dll
1>-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\Facades\System.Xml.XmlSerializer.dll
1>--target:exe
1>--warn:3
1>--warnaserror:76
1>--vserrors
1>--utf8output
1>--fullpaths
1>--flaterrors
1>--subsystemversion:6.00
1>--highentropyva+
1>C:\Users\cnichols\AppData\Local\Temp\.NETFramework,Version=v4.6.2.AssemblyAttributes.fs
1>AssemblyInfo.fs
1>Program.fs
1>
1>FSC: warning FS2003: An System.Reflection.AssemblyInformationalVersionAttribute specified version '13.3.1.74-g5224f3b', but this value is invalid and has been ignored
1> ConsoleApplication4 -> C:\Users\cnichols\Documents\Visual Studio 2017\Projects\ConsoleApplication4\ConsoleApplication4\bin\Release\ConsoleApplication4.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
Updates
Problem reproduced after a reboot.
Problem reproduced on VS 2017 15.2 26430.4.
Problem reproduced on VS 2017 15.2 26430.6.
Problem reproduced on VS 2015 14.0.25431.01 Update 3.
Problem reproduced on a different PC.
Opened an issue against F#: #nowarn “2003” doesn't disable FS2003 #3139
This is not the same kind of warning as normal warnings.
Try changing your main to let main argv = 5; 0 - you'll get a warning about ignoring the value 5. Check out how its formatting is different: it has file name, line, column, etc.
Also, notice how FS2003 doesn't show up if there are build errors. This points to it being emitted not by the compiler proper, but after the fact, while assembling the assembly and plugging the version in the metadata.
More importantly, this warning FS2003 will not get converted to an error when building with "warnings as errors". So the bottom line is, just ignore it.
Microsoft has assigned a priority to this bug and has a proper, working repro.
And again, this warning clearly does get converted to an error when building with "warnings as errors."

References to NuGet packages cannot be resolved in F# project being built in VSTS

With Visual Studio 2017 Community I have created a solution with a F# library project (regular, not PCL) targeting the .NET 4.5.2 framework and the F# 4.1 (FSharp.Core, 4.4.1.0) runtime. Visual Studio added for me the NuGet reference to System.ValueType (4.3.0) by default.
The only code in this project is the following which is using System.ValueType:
type TupleCreator() =
member this.Create x =
System.ValueTuple.Create(x)
Building the project locally works fine, unfortunately this is not the case with VSTS. I have a build definition (with default agent queue set to Hosted VS2017) with a NuGet restore step and a build solution step (with Visual Studio Version set to Latest).
When the build runs it succeeds in restoring the nuget packages:
##[section]Starting: NuGet restore **\*.sln
=================================================================
Task : NuGet Installer
Description : Installs or restores missing NuGet packages
Version : 0.2.31
Author : Microsoft Corporation
=================================================================
[command]C:\Windows\system32\chcp.com 65001
Active code page: 65001
Detected NuGet version 3.3.0.212 / 3.3.0
SYSTEMVSSCONNECTION exists true
To connect to NuGet feeds hosted in your Team Services account/TFS project collection on this build agent, edit your build definition to choose a higher version of nuget or specify a path to a NuGet.config containing the package sources you wish to use.
[command]d:\a\_tasks\NuGetInstaller_333b11bd-d341-40d9-afcf-b32d5ce6f23b\0.2.31\node_modules\nuget-task-common\NuGet\3.3.0\NuGet.exe restore -NonInteractive d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\FSharpWithNugetDemo.sln
MSBuild auto-detection: using msbuild version '4.0' from 'C:\Windows\Microsoft.NET\Framework\v4.0.30319'.
Feeds used:
C:\Users\buildguest\AppData\Local\NuGet\Cache
https://api.nuget.org/v3/index.json
Restoring NuGet package System.ValueTuple.4.3.0.
Adding package 'System.ValueTuple.4.3.0' to folder 'd:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\packages'
Added package 'System.ValueTuple.4.3.0' to folder 'd:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\packages'
##[section]Finishing: NuGet restore **\*.sln
The build step then yields the following log:
##[section]Starting: Build solution $/tfs1/Apps/Sandbox/FSharpWithNugetDemo/FSharpWithNugetDemo.sln
==============================================================================
Task : Visual Studio Build
Description : Build with MSBuild and set the Visual Studio version property
Version : 1.117.0
Author : Microsoft Corporation
Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613727)
==============================================================================
##[command]"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.117.0\ps_modules\MSBuildHelpers\vswhere.exe" -version [15.0,15.1) -latest -format json
##[command]"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe" "d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\FSharpWithNugetDemo.sln" /nologo /nr:false /dl:CentralLogger,"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.117.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=d08ecee6-b628-4743-9e80-d31a64026956|SolutionDir=d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo"*ForwardingLogger,"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.117.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:TreatWarningsAsErrors=False /p:platform="any cpu" /p:configuration="debug" /p:VisualStudioVersion="15.0" /p:_MSDeployUserAgent="VSTS_1e91f890-819e-4329-aa62-069b62ae16d0_build_4_116"
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 5/24/2017 6:32:52 PM.
Project "d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\FSharpWithNugetDemo.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "debug|any cpu".
Project "d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\FSharpWithNugetDemo.sln" (1) is building "d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\FSharpWithNugetDemo.fsproj" (2) on node 1 (default targets).
PrepareForBuild:
Creating directory "bin\Debug\".
Creating directory "obj\Debug\".
ResolveAssemblyReferences:
Primary reference "System.ValueTuple".
##[warning]C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1964,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.ValueTuple". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1964,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.ValueTuple". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\FSharpWithNugetDemo.fsproj]
For SearchPath "{HintPathFromItem}".
Considered "..\..\Sandbox (local)\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll", but it didn't exist.
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.ValueTuple.winmd", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.ValueTuple.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.ValueTuple.exe", but it didn't exist.
.
.
.
Considered "bin\Debug\System.ValueTuple.exe", but it didn't exist.
CoreCompile:
C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\fsc.exe -o:obj\Debug\FSharpWithNugetDemo.dll
-g
--debug:full
--noframework
--define:DEBUG
--define:TRACE
--doc:bin\Debug\FSharpWithNugetDemo.XML
--optimize-
--tailcalls-
-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.4.1.0\FSharp.Core.dll
-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\mscorlib.dll
-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Core.dll
-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.dll
-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Numerics.dll
--target:library
--warn:3
--warnaserror:76
--fullpaths
--flaterrors
--subsystemversion:6.00
--highentropyva+
d:\a\_temp\.NETFramework,Version=v4.5.2.AssemblyAttributes.fs
AssemblyInfo.fs
Library1.fs
##[error]Apps\Sandbox\FSharpWithNugetDemo\Library1.fs(5,12): Error FS0039: The value, constructor, namespace or type 'ValueTuple' is not defined. Maybe you want one of the following: ValueType
d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\Library1.fs(5,12): error FS0039: The value, constructor, namespace or type 'ValueTuple' is not defined. Maybe you want one of the following: ValueType [d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\FSharpWithNugetDemo.fsproj]
Done Building Project "d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\FSharpWithNugetDemo.fsproj" (default targets) -- FAILED.
Done Building Project "d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\FSharpWithNugetDemo.sln" (default targets) -- FAILED.
Build FAILED.
"d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\FSharpWithNugetDemo.sln" (default target) (1) ->
"d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\FSharpWithNugetDemo.fsproj" (default target) (2) ->
(ResolveAssemblyReferences target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1964,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.ValueTuple". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\FSharpWithNugetDemo.fsproj]
"d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\FSharpWithNugetDemo.sln" (default target) (1) ->
"d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\FSharpWithNugetDemo.fsproj" (default target) (2) ->
(CoreCompile target) ->
d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\Library1.fs(5,12): error FS0039: The value, constructor, namespace or type 'ValueTuple' is not defined. Maybe you want one of the following: ValueType [d:\a\3\s\Apps\Sandbox\FSharpWithNugetDemo\FSharpWithNugetDemo.fsproj]
1 Warning(s)
1 Error(s)
Time Elapsed 00:00:06.14
##[error]Process 'msbuild.exe' exited with code '1'.
This is not an issue with System.ValueType because the build process is unable to build with references to any nuget packages. This is also not an issue with my VSTS because my C# projects with NuGet references get built fine.
What is wrong with my F# project? Are there additional steps to be taken in order to enable NuGet in F# projects on VSTS?
EDIT
I just compared the output of the CoreCompile section with what is printed in Visual Studio. In Visual Studio it says:
C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\fsc.exe -o:obj\Debug\FSharpWithNugetDemo.dll
-g
--debug:full
--noframework
--define:DEBUG
--define:TRACE
--doc:bin\Debug\FSharpWithNugetDemo.XML
--optimize-
--tailcalls-
-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.4.1.0\FSharp.Core.dll
-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\mscorlib.dll
-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Core.dll
-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.dll
-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Numerics.dll
-r:D:\Projects\Sandbox\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll
.
.
.
--target:library
--warn:3
--warnaserror:76
--vserrors
--utf8output
--fullpaths
--flaterrors
--subsystemversion:6.00
--highentropyva+
C:\Users\David\AppData\Local\Temp\.NETFramework,Version=v4.5.2.AssemblyAttributes.fs
AssemblyInfo.fs
Library1.fs
FSharpWithNugetDemo -> D:\Projekte\VisualStudio.com\sphereutfs\Dev\Apps\Sandbox\FSharpWithNugetDemo\bin\Debug\FSharpWithNugetDemo.dll
The difference is that there is a -r: line with a path to the System.ValueTuple.dll obtained from NuGet which is missing in the log of the VSTS build. How can I tell the VSTS build to include this reference when compiling?
This is caused the setting in your FSharpWithNugetDemo.fsproj file. You set the path for System.ValueTuple as your local path:
<Reference Include="System.ValueTuple">
<HintPath>..\..\Sandbox (local)\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
</Reference>
It should be use relate path so that when it build by VSTS, System.ValueTuple will be searched in $(build.sourcesdirectory):
<Reference Include="System.ValueTuple">
<HintPath>..\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
</Reference>

TFS: Wix using TfvcTemplate.12 unable to find source files

I need to use TfvcTemplate.12.xaml because of its Pre and Post build script execution support and I need to run a Powershell script as PreBuild event.
On TFS 2013, Building a Wix project using old DefaultTemplate.xaml works fine. While trying to build using new default template TfvcTemplate.12.xaml builds the csharp project fine, but Wix is unable to find its files, while files are present at same location.
Here is Wix code:
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?define SourceDir=$(var.OutDir)?>
<?warning **************** Target=$(var.TargetDir) ***********?>
<?warning **************** src=$(var.SourceDir) **************?>
<Product Id="*" Language="1033" Manufacturer="Test" Name="Testing" UpgradeCode="DB7DAC5A-ED29-45E6-8029-89F6486A9ACA" Version="1.0.0.0">
<Package Compressed="yes" InstallerVersion="200" Platform="x64" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder" Name="ProgFiles">
<Directory Id="bin" Name="bin">
<Component Id="AddProjToSln.exe" Guid="*">
<File Id="AddProjToSln.exe" KeyPath="yes" Source="$(var.SourceDir)AddProjToSln.exe" />
</Component>
<Component Id="AddProjToSln.exe.config" Guid="*">
<File Id="AddProjToSln.exe.config" KeyPath="yes" Source="$(var.SourceDir)AddProjToSln.exe.config" />
</Component>
</Directory>
</Directory>
</Directory>
<Feature Id="ProductFeature" Level="1" Title="TestFe">
<ComponentGroupRef Id="Testing" />
</Feature>
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
</Product>
<Fragment>
<ComponentGroup Id="Testing">
<ComponentRef Id="AddProjToSln.exe" />
<ComponentRef Id="AddProjToSln.exe.config" />
</ComponentGroup>
</Fragment>
</Wix>
Here is the log from TFS:
Build started 10/13/2014 5:24:15 PM.
1>Project "D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\AddProjToSln.sln"
on node 1 (default targets).
1>ValidateSolutionConfiguration:
Building solution configuration "Debug|Any CPU".
1>Project "D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\AddProjToSln.sln"
(1) is building
"D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\AddProjToSln\AddProjToSln.csproj"
(2) on node 1 (default targets).
2>PrepareForBuild:
Creating directory "obj\Debug\".
1>Project "D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\AddProjToSln.sln"
(1) is building
"D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\test_install.wixproj"
(3) on node 2 (default targets).
3>PrepareForBuild:
Creating directory "obj\Debug\".
Compile:
C:\Program Files (x86)\WiX Toolset v3.8\bin\candle.exe -dDebug -d"DevEnvDir=Undefined if not building from within Visual Studio"
-dSolutionDir=D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\
-dSolutionExt=.sln -dSolutionFileName=AddProjToSln.sln -dSolutionName=AddProjToSln -dSolutionPath=D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\AddProjToSln.sln
-dConfiguration=Debug -dOutDir=D:\Builds\31\47\bin\ -dPlatform=x86 -dProjectDir=D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\
-dProjectExt=.wixproj -dProjectFileName=test_install.wixproj -dProjectName=test_install -dProjectPath=D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\test_install.wixproj
-dTargetDir=D:\Builds\31\47\bin\ -dTargetExt=.msi -dTargetFileName=test.msi -dTargetName=test -dTargetPath=D:\Builds\31\47\bin\test.msi -out obj\Debug\ -arch x86 Product.wxs
3>D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\Product.wxs(4):
warning CNDL1096: **************** Target=D:\Builds\31\47\bin\
*********** [D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\test_install.wixproj]
3>D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\Product.wxs(5):
warning CNDL1096: **************** src=D:\Builds\31\47\bin\
************** [D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\test_install.wixproj]
Link:
C:\Program Files (x86)\WiX Toolset v3.8\bin\Light.exe -out D:\Builds\31\47\bin\test.msi -pdbout D:\Builds\31\47\bin\test.wixpdb
-cultures:null -contentsfile obj\Debug\test_install.wixproj.BindContentsFileListnull.txt
-outputsfile obj\Debug\test_install.wixproj.BindOutputsFileListnull.txt
-builtoutputsfile obj\Debug\test_install.wixproj.BindBuiltOutputsFileListnull.txt
-wixprojectfile D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\test_install.wixproj
obj\Debug\Product.wixobj
2>GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input
files.
3>D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\Product.wxs(12):
error LGHT0103: The system cannot find the file
'D:\Builds\31\47\bin\AddProjToSln.exe'.
[D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\test_install.wixproj]
3>D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\Product.wxs(15):
error LGHT0103: The system cannot find the file
'D:\Builds\31\47\bin\AddProjToSln.exe.config'.
[D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\test_install.wixproj]
3>Done Building Project "D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\test_install.wixproj"
(default targets) -- FAILED.
2>CoreCompile:
C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /platform:AnyCPU
/errorreport:prompt /warn:4 /main:AddProjToSln.Program /highentropyva+
/reference:"c:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\PublicAssemblies\envdte.dll" /reference:"c:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\PublicAssemblies\envdte100.dll" /reference:"c:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\PublicAssemblies\envdte80.dll" /reference:"c:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\PublicAssemblies\envdte90.dll" /reference:"C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework.NETFramework\v4.5\Microsoft.CSharp.dll"
/reference:"C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework.NETFramework\v4.5\Microsoft.VisualBasic.dll"
/reference:"C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework.NETFramework\v4.5\mscorlib.dll"
/reference:"C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework.NETFramework\v4.5\System.Core.dll"
/reference:"C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework.NETFramework\v4.5\System.Data.DataSetExtensions.dll"
/reference:"C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework.NETFramework\v4.5\System.Data.dll"
/reference:"C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework.NETFramework\v4.5\System.dll"
/reference:"C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework.NETFramework\v4.5\System.Windows.Forms.dll"
/reference:"C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework.NETFramework\v4.5\System.Xml.dll"
/reference:"C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework.NETFramework\v4.5\System.Xml.Linq.dll"
/debug+ /debug:full /filealign:512 /optimize-
/out:obj\Debug\AddProjToSln.exe /subsystemversion:6.00 /target:exe
/utf8output /win32icon:"Crystal_Clear_mimetype_recycled (2).ico"
Program.cs Properties\AssemblyInfo.cs
"C:\Users\tfsbuild\AppData\Local\Temp.NETFramework,Version=v4.5.AssemblyAttributes.cs"
_CopyAppConfigFile:
Copying file from "App.config" to "D:\Builds\31\47\bin\AddProjToSln.exe.config".
CopyFilesToOutputDirectory:
Copying file from "obj\Debug\AddProjToSln.exe" to "D:\Builds\31\47\bin\AddProjToSln.exe".
AddProjToSln -> D:\Builds\31\47\bin\AddProjToSln.exe
Copying file from "obj\Debug\AddProjToSln.pdb" to "D:\Builds\31\47\bin\AddProjToSln.pdb".
2>Done Building Project "D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\AddProjToSln\AddProjToSln.csproj"
(default targets).
1>Done Building Project "D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\AddProjToSln.sln"
(default targets) -- FAILED.
Build FAILED.
"D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\AddProjToSln.sln"
(default target) (1) ->
"D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\test_install.wixproj"
(default target) (3) ->
(Compile target) ->
D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\Product.wxs(4):
warning CNDL1096: **************** Target=D:\Builds\31\47\bin\
*********** [D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\test_install.wixproj]
D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\Product.wxs(5):
warning CNDL1096: **************** src=D:\Builds\31\47\bin\
************** [D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\test_install.wixproj]
"D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\AddProjToSln.sln"
(default target) (1) ->
"D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\test_install.wixproj"
(default target) (3) ->
(Link target) ->
D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\Product.wxs(12):
error LGHT0103: The system cannot find the file
'D:\Builds\31\47\bin\AddProjToSln.exe'.
[D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\test_install.wixproj]
D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\Product.wxs(15):
error LGHT0103: The system cannot find the file
'D:\Builds\31\47\bin\AddProjToSln.exe.config'.
[D:\Builds\31\47\src\MyComp\Playground\MyUser\Utilities\VisualStudio\TestInstall\test_install.wixproj]
2 Warning(s)
2 Error(s)
Time Elapsed 00:00:01.04
I verified multiple times that files are there and it builds without any problem at command line using MsBuild and Wix Tool set as well.
I'm unable to figure out why using TfvcTemplate.12.xaml, wix is unable to see its files while these are present intact there....
Any help would be really appreciated.
So, finally I was able to solve this after a whole day struggle. Like Digg a mountain and got a mice :).
Actually TfvcTemplate.12.xaml seems to be executing MsBuild with parallel processing enabled (/m), while in my VS Solution, Wix project was added independently i.e. in Build Order it was the last project to build, but I never set other projects as its dependencies. So MSBuild found that it has no dependency and ignored its Build Order and simply building it either on random order or as first project. So naturally installer project was unable to find its source files and so failing.
I verified this phenomena by removing /m:1 argument to MSBuild and declaring all other projects as Dependencies of Wix Project: i.e. in VS, PROJECT –> Project Dependencies. This caused MsBuild to build all other projects before Wix Project and now Wix is able to find its Source files properly…
Here is the screenshot for illustration:

Build issue when using package restore in Team Foundation Service

I'm trying Microsoft Team Foundation Service ( the Cloud TFS ) and using automated hosted build and package restore.
It always fails, but according to log it seems that the package restore works fine but it's a problem when locating the binaries we got through the package restore, it's like it doesn't look into the right folder.
LOG:
Build started 4/9/2013 10:24:37 AM.
Project "C:\a\src\ValuePlan.Client.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|x86".
Project "C:\a\src\ValuePlan.Client.sln" (1) is building "C:\a\src\VP\VP.csproj" (2) on node 1 (default targets).
RestorePackages:
"C:\a\src\.nuget\nuget.exe" install "C:\a\src\VP\packages.config" -source "" -o "C:\a\src\packages"
Successfully installed 'Autofac 2.6.3.862'.
Successfully installed 'Caliburn.Micro 1.3.1'.
PrepareForBuild:
Creating directory "obj\x86\Release\".
Project "C:\a\src\VP\VP.csproj" (2) is building "C:\a\src\VpUserControls\VpUserControls.csproj" (3) on node 1 (default targets).
RestorePackages:
"C:\a\src\.nuget\nuget.exe" install "C:\a\src\VpUserControls\packages.config" -source "" -o "C:\a\src\packages"
All packages listed in packages.config are already installed.
PrepareForBuild:
Creating directory "obj\Release\".
ResolveAssemblyReferences:
A TargetFramework profile exclusion list will be generated.
Primary reference "Caliburn.Micro".
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Caliburn.Micro". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\a\src\VpUserControls\VpUserControls.csproj]
For SearchPath "C:\a\src\VpUserControls\FakesAssemblies".
Considered "C:\a\src\VpUserControls\FakesAssemblies\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\a\src\VpUserControls\FakesAssemblies\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\a\src\VpUserControls\FakesAssemblies\Caliburn.Micro.exe", but it didn't exist.
For SearchPath "{HintPathFromItem}".
Considered "..\..\CL_WIN\packages\Caliburn.Micro.1.3.1\lib\net40\Caliburn.Micro.dll", but it didn't exist.
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\Caliburn.Micro.exe", but it didn't exist.
For SearchPath "{Registry:Software\Microsoft\.NETFramework,v4.0,AssemblyFoldersEx}".
Considered AssemblyFoldersEx locations.
For SearchPath "{AssemblyFolders}".
Considered "C:\Program Files\Microsoft.NET\ADOMD.NET\100\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft.NET\ADOMD.NET\100\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft.NET\ADOMD.NET\100\Caliburn.Micro.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\110\SDK\Assemblies\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\110\SDK\Assemblies\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\110\SDK\Assemblies\Caliburn.Micro.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\Tasks\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\Tasks\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\Tasks\Caliburn.Micro.exe", but it didn't exist.
Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\Caliburn.Micro.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents\Caliburn.Micro.exe", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\Caliburn.Micro.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\ForEachEnumerators\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\ForEachEnumerators\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\ForEachEnumerators\Caliburn.Micro.exe", but it didn't exist.
For SearchPath "{GAC}".
Considered "Caliburn.Micro", which was not found in the GAC.
For SearchPath "{RawFileName}".
Considered treating "Caliburn.Micro" as a file name, but it didn't exist.
For SearchPath "C:\a\bin\".
Considered "C:\a\bin\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\a\bin\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\a\bin\Caliburn.Micro.exe", but it didn't exist.
Primary reference "System.Windows.Interactivity".
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Windows.Interactivity". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\a\src\VpUserControls\VpUserControls.csproj]
For SearchPath "C:\a\src\VpUserControls\FakesAssemblies".
Considered "C:\a\src\VpUserControls\FakesAssemblies\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\a\src\VpUserControls\FakesAssemblies\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\a\src\VpUserControls\FakesAssemblies\System.Windows.Interactivity.exe", but it didn't exist.
For SearchPath "{HintPathFromItem}".
Considered "..\..\CL_WIN\packages\Caliburn.Micro.1.3.1\lib\net40\System.Windows.Interactivity.dll", but it didn't exist.
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Windows.Interactivity.exe", but it didn't exist.
For SearchPath "{Registry:Software\Microsoft\.NETFramework,v4.0,AssemblyFoldersEx}".
Considered AssemblyFoldersEx locations.
For SearchPath "{AssemblyFolders}".
Considered "C:\Program Files\Microsoft.NET\ADOMD.NET\100\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft.NET\ADOMD.NET\100\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft.NET\ADOMD.NET\100\System.Windows.Interactivity.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\110\SDK\Assemblies\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\110\SDK\Assemblies\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\110\SDK\Assemblies\System.Windows.Interactivity.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\Tasks\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\Tasks\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\Tasks\System.Windows.Interactivity.exe", but it didn't exist.
Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\System.Windows.Interactivity.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents\System.Windows.Interactivity.exe", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Windows.Interactivity.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\ForEachEnumerators\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\ForEachEnumerators\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\ForEachEnumerators\System.Windows.Interactivity.exe", but it didn't exist.
For SearchPath "{GAC}".
Considered "System.Windows.Interactivity", which was not found in the GAC.
For SearchPath "{RawFileName}".
Considered treating "System.Windows.Interactivity" as a file name, but it didn't exist.
For SearchPath "C:\a\bin\".
Considered "C:\a\bin\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\a\bin\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\a\bin\System.Windows.Interactivity.exe", but it didn't exist.
AssemblyFoldersEx location: "{Registry:Software\Microsoft\.NETFramework,v4.0,AssemblyFoldersEx}"
C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\
C:\Program Files\Reference Assemblies\Microsoft\Workflow Manager\1.0\
C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-10\ref\Caching\
C:\Program Files\Windows Azure SDK\v1.6\ServiceBus\ref\
C:\Program Files\Windows Azure SDK\v1.6\Cache\ref\
C:\Program Files (x86)\Microsoft WCF Data Services\5.0\bin\.NETFramework\
C:\Program Files (x86)\Common Files\microsoft shared\VSTT\10.0\UITestExtensionPackages
C:\Program Files\Reference Assemblies\Microsoft\VSTO40\v4.0.Framework\
C:\Program Files\Reference Assemblies\Microsoft\VSTA30\v9.0\
C:\Program Files\Reference Assemblies\Microsoft\VSTA30\v8.0\
C:\Program Files\Reference Assemblies\Microsoft\VSTA30\v10.0\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Visual Studio Tools for Office\PIA\Office15\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Visual Studio Tools for Office\PIA\Office14\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Visual Studio Tools for Office\PIA\Common\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office14\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office12\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Common\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\SharePoint\PublicAssemblies\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v4.0\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v4.0\
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Itanium\
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\
C:\Program Files (x86)\Reference Assemblies\Microsoft\VBPowerPacks\v10.0\
C:\Program Files (x86)\Microsoft Synchronization Services\ADO.NET\v1.0
C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5\Desktop
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\WorkflowActivities\
C:\Program Files (x86)\Reference Assemblies\Microsoft\SharePoint15\
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\
C:\Program Files (x86)\Microsoft SDKs\RIA Services\v1.0\Libraries\Server\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\ReportViewer\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies\
C:\Program Files (x86)\Microsoft.NET\Primary Interop Assemblies\
C:\Program Files (x86)\Open XML SDK\V2.5\lib
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v4.0\
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\3.0\Runtime\v4.0\Type Providers\
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\3.0\Runtime\v4.0\
C:\Program Files (x86)\Microsoft SDKs\Expression\Extensions\FXG\Libraries\.NETFramework\v4.0\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\
C:\Program Files (x86)\Reference Assemblies\Microsoft\Windows Identity Foundation SDK\v4.0\
C:\Program Files\Reference Assemblies\Microsoft\Windows Identity Foundation\v3.5\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\ReportViewer\
C:\Program Files\Reference Assemblies\Microsoft\Microsoft Identity Extensions\1.0\
C:\Program Files\Reference Assemblies\Microsoft\VSTO40\v9.0\
C:\Program Files\Reference Assemblies\Microsoft\VSTO40\v10.0\
C:\Program Files\Reference Assemblies\Microsoft\VSTA30\v9.0\
C:\Program Files\Reference Assemblies\Microsoft\VSTA30\v10.0\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office14\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office12\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Common\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\SharePoint\PublicAssemblies\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VSSDK\VisualStudioIntegration\Common\Assemblies\v2.0\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v2.0\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0\
C:\Program Files (x86)\Reference Assemblies\Microsoft\VBPowerPacks\v10.0\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0\
C:\Program Files (x86)\Microsoft Synchronization Services\ADO.NET\v1.0
C:\Program Files (x86)\Microsoft SDKs\Microsoft Sync Framework\v1.0\Runtime\ADO.NET\V2.0\x64\
C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v4.0\Desktop
C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5\Desktop
C:\Program Files (x86)\Reference Assemblies\Microsoft\SharePoint14\
C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-10\ref
C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-06\ref
C:\Program Files\Windows Azure SDK\v1.6\ref
C:\Program Files (x86)\Microsoft Visual Studio 10.0\ReportViewer\
C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\PublicAssemblies\
C:\Program Files (x86)\Microsoft Chart Controls\Assemblies
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v2.0\
C:\Program Files (x86)\Microsoft SDKs\Microsoft Sync Framework\v1.0\Runtime\x86\
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\3.0\Runtime\v2.0\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Blend\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Blend\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 2\Assemblies\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 1.0\Assemblies\
C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-10\ref
C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-06\ref
C:\Program Files\Windows Azure SDK\v1.6\ref
C:\a\src\VpUserControls\Views\Navigation\DimensionTreeView.xaml(13,26): error MC3072: The property 'Bind.Model' does not exist in XML namespace 'http://www.caliburnproject.org'. Line 13 Position 26. [C:\a\src\VpUserControls\VpUserControls.csproj]
C:\a\src\VpUserControls\Views\Navigation\NavigationBarView.xaml(13,33): error MC3072: The property 'View.Model' does not exist in XML namespace 'http://www.caliburnproject.org'. Line 13 Position 33. [C:\a\src\VpUserControls\VpUserControls.csproj]
C:\a\src\VpUserControls\Views\Tools\ToolBarView.xaml(22,28): error MC3072: The property 'Bind.Model' does not exist in XML namespace 'http://www.caliburnproject.org'. Line 22 Position 28. [C:\a\src\VpUserControls\VpUserControls.csproj]
C:\a\src\VpUserControls\Views\Workspace\DimensionBarsView.xaml(11,19): error MC3072: The property 'Bind.Model' does not exist in XML namespace 'http://www.caliburnproject.org'. Line 11 Position 19. [C:\a\src\VpUserControls\VpUserControls.csproj]
Done Building Project "C:\a\src\VpUserControls\VpUserControls.csproj" (default targets) -- FAILED.
Done Building Project "C:\a\src\VP\VP.csproj" (default targets) -- FAILED.
Done Building Project "C:\a\src\ValuePlan.Client.sln" (default targets) -- FAILED.
Build FAILED.
"C:\a\src\ValuePlan.Client.sln" (default target) (1) ->
"C:\a\src\VP\VP.csproj" (default target) (2) ->
"C:\a\src\VpUserControls\VpUserControls.csproj" (default target) (3) ->
(ResolveAssemblyReferences target) ->
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Caliburn.Micro". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\a\src\VpUserControls\VpUserControls.csproj]
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Windows.Interactivity". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\a\src\VpUserControls\VpUserControls.csproj]
"C:\a\src\ValuePlan.Client.sln" (default target) (1) ->
"C:\a\src\VP\VP.csproj" (default target) (2) ->
"C:\a\src\VpUserControls\VpUserControls.csproj" (default target) (3) ->
(MarkupCompilePass1 target) ->
C:\a\src\VpUserControls\Views\Navigation\DimensionTreeView.xaml(13,26): error MC3072: The property 'Bind.Model' does not exist in XML namespace 'http://www.caliburnproject.org'. Line 13 Position 26. [C:\a\src\VpUserControls\VpUserControls.csproj]
C:\a\src\VpUserControls\Views\Navigation\NavigationBarView.xaml(13,33): error MC3072: The property 'View.Model' does not exist in XML namespace 'http://www.caliburnproject.org'. Line 13 Position 33. [C:\a\src\VpUserControls\VpUserControls.csproj]
C:\a\src\VpUserControls\Views\Tools\ToolBarView.xaml(22,28): error MC3072: The property 'Bind.Model' does not exist in XML namespace 'http://www.caliburnproject.org'. Line 22 Position 28. [C:\a\src\VpUserControls\VpUserControls.csproj]
C:\a\src\VpUserControls\Views\Workspace\DimensionBarsView.xaml(11,19): error MC3072: The property 'Bind.Model' does not exist in XML namespace 'http://www.caliburnproject.org'. Line 11 Position 19. [C:\a\src\VpUserControls\VpUserControls.csproj]
2 Warning(s)
4 Error(s)
Time Elapsed 00:00:18.83
Anyone have a similar problem or am I reading the log wrong and misunderstanding what's going on here.
EDIT
I'm thinking there is a possibility that the NuGet.targets file might be incorrectly set for hosted build. In the RestoreCommand part there is this -o modifier that some have reported is out of place.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
<!-- Enable the restore command to run before builds -->
<RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
<!-- Property that enables building a package from a project -->
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
<!-- Download NuGet.exe if it does not already exist -->
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
</PropertyGroup>
<ItemGroup Condition=" '$(PackageSources)' == '' ">
<!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
<!--
<PackageSource Include="https://nuget.org/api/v2/" />
<PackageSource Include="https://my-nuget-source/nuget/" />
-->
</ItemGroup>
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
<!-- Windows specific commands -->
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
<PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
<PackagesDir>$([System.IO.Path]::Combine($(SolutionDir), "packages"))</PackagesDir>
</PropertyGroup>
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
<!-- We need to launch nuget.exe with the mono command if we're not on windows -->
<NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
<PackagesConfig>packages.config</PackagesConfig>
<PackagesDir>$(SolutionDir)packages</PackagesDir>
</PropertyGroup>
<PropertyGroup>
<!-- NuGet command -->
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\nuget.exe</NuGetExePath>
<PackageSources Condition=" $(PackageSources) == '' ">#(PackageSource)</PackageSources>
<NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
<NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
<!-- Commands -->
<RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" -o "$(PackagesDir)"</RestoreCommand>
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
<!-- Make the build depend on restore packages -->
<BuildDependsOn Condition="$(RestorePackages) == 'true'">
RestorePackages;
$(BuildDependsOn);
</BuildDependsOn>
<!-- Make the build depend on restore packages -->
<BuildDependsOn Condition="$(BuildPackage) == 'true'">
$(BuildDependsOn);
BuildPackage;
</BuildDependsOn>
</PropertyGroup>
<Target Name="CheckPrerequisites">
<!-- Raise an error if we're unable to locate nuget.exe -->
<Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
<SetEnvironmentVariable EnvKey="VisualStudioVersion" EnvValue="$(VisualStudioVersion)" Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' " />
<DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
</Target>
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(RestoreCommand)"
Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
<Exec Command="$(RestoreCommand)"
LogStandardErrorAsError="true"
Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
</Target>
<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(BuildCommand)"
Condition=" '$(OS)' != 'Windows_NT' " />
<Exec Command="$(BuildCommand)"
LogStandardErrorAsError="true"
Condition=" '$(OS)' == 'Windows_NT' " />
</Target>
<UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
<ParameterGroup>
<OutputFilename ParameterType="System.String" Required="true" />
</ParameterGroup>
<Task>
<Reference Include="System.Core" />
<Using Namespace="System" />
<Using Namespace="System.IO" />
<Using Namespace="System.Net" />
<Using Namespace="Microsoft.Build.Framework" />
<Using Namespace="Microsoft.Build.Utilities" />
<Code Type="Fragment" Language="cs">
<![CDATA[
try {
OutputFilename = Path.GetFullPath(OutputFilename);
Log.LogMessage("Downloading latest version of NuGet.exe...");
WebClient webClient = new WebClient();
webClient.DownloadFile("https://nuget.org/nuget.exe", OutputFilename);
return true;
}
catch (Exception ex) {
Log.LogErrorFromException(ex);
return false;
}
]]>
</Code>
</Task>
</UsingTask>
<UsingTask TaskName="SetEnvironmentVariable" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
<ParameterGroup>
<EnvKey ParameterType="System.String" Required="true" />
<EnvValue ParameterType="System.String" Required="true" />
</ParameterGroup>
<Task>
<Using Namespace="System" />
<Code Type="Fragment" Language="cs">
<![CDATA[
try {
Environment.SetEnvironmentVariable(EnvKey, EnvValue, System.EnvironmentVariableTarget.Process);
}
catch {
}
]]>
</Code>
</Task>
</UsingTask>
So I have managed to solve this myself. There must have been something wrong with one of my NuGet packages ( Caliburn.Micro 1.3.1 ) because when I updated that package the problem disappeared. I'm guessing there was something incorrect in the way that package looked for it's own assemblies but could not be sure because I'm not an expert on how NuGet packages work.
If someone has a similar problem I recommend looking at your packages, updating them and/or contact their developers asking if there could be a problem for automatic building.

F# 3.0 compiler error FS0193 when upgrading project

I'm getting a strange FSharp.Core-related error when building one of my larger projects, and the error doesn't contain any location information to help me track down where the problem is.
The compile error is error FS0193: The module/namespace 'Microsoft.FSharp.Linq.RuntimeHelpers' from compilation unit 'FSharp.Core' did not contain the namespace, module or type 'LeafExpressionConverter'
At first I thought it was because the project was using the old Powerpack LINQ stuff, so I stripped that out. Then I thought maybe it had something to do with using Entity Framework 4.3 instead of 5.0, so I upgraded that. Same error. I'm still compiling to .NET 4.0, not 4.5... perhaps this is part of the cause?
I compared the Doctypes.fsproj XML with other projects in the same solution, and everything looks normal. The FSharp.Core reference is simply <Reference Include="FSharp.Core" />
This is a very large project, so creating a small reproducible version of this error may take me a while to figure out, and I'm wondering if anyone here has a quick answer.
Here's the MSBUILD output:
19> C:\Program Files (x86)\Microsoft SDKs\F#\3.0\Framework\v4.0\fsc.exe -o:obj\Debug\DTC.Doctypes.dll -g --debug:full --noframework --define:DEBUG --define:TRACE --doc:bin\Debug\Doctypes.XML --optimize- --tailcalls- --resource:statutes_ebook_cover.jpg -r:A:\svn\dtc\Publisher\Doctypes\bin\Debug\CsvHelper.dll -r:A:\svn\dtc\Publisher\Data\bin\Debug\DTC.Data.dll -r:A:\svn\dtc\Publisher\Formats\bin\Debug\DTC.Formats.dll -r:A:\svn\dtc\Publisher\Parser\bin\Debug\DTC.Parser.dll -r:A:\svn\dtc\Publisher\ReferenceParser\bin\Debug\DTC.ReferenceParser.dll -r:A:\svn\dtc\Publisher\Shared\bin\Debug\DTC.Shared.dll -r:A:\svn\dtc\Publisher\Solr\bin\Debug\DTC.Solr.dll -r:A:\svn\dtc\Publisher\Utilities\bin\Debug\DTC.Utilities.dll -r:A:\svn\dtc\Publisher\Doctypes\bin\Debug\EntityFramework.dll -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v4.0\FSharp.Core.dll" -r:A:\svn\dtc\Publisher\packages\HtmlAgilityPack.1.4.6\lib\Net40\HtmlAgilityPack.dll -r:A:\svn\dtc\Publisher\packages\DotNetZip.1.9.1.8\lib\net20\Ionic.Zip.dll -r:A:\svn\dtc\Publisher\packages\LegislativeData.1.0.2773.180\lib\net40\LegislativeData.dll -r:A:\svn\dtc\Publisher\packages\LibrarianData.1.0.2773.6\lib\net40\Librarian.Data.dll -r:A:\svn\dtc\Lib\Office12\Microsoft.Office.Interop.Excel.dll -r:A:\svn\dtc\Lib\Office12\Microsoft.Office.Interop.Word.dll -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" -r:A:\svn\dtc\Publisher\packages\Newtonsoft.Json.4.5.11\lib\net40\Newtonsoft.Json.dll -r:A:\svn\dtc\Publisher\Repository\bin\Debug\Repository.dll -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.ComponentModel.DataAnnotations.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Configuration.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.Entity.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Numerics.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Runtime.Serialization.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll" --target:library --warn:4 --warnaserror --warnaserror:76 --vserrors --validate-type-providers --LCID:1033 --utf8output --fullpaths --flaterrors --highentropyva- "C:\Users\dfitch\AppData\Local\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.fs" Helpers.fs Paths.fs FolioImport.fs Epub.fs Kindle.fs Ebooks.fs SharedLaw.fsi SharedLaw.fs SharedIndex.fs HistoryLinks.fs AdministrativeCodeHeaders.fs AdministrativeCode.fs AdministrativeCodeTOC.fs AdministrativeCodeIndex.fs SCRHeaders.fs Register.fs StatuteHeaders.fs Statutes.fs StatutesTOC.fs StatutesIndex.fs CrossReferences.fs SupremeCourtRules.fs Constitution.fs SessionTypes.fs CrDocs.fs EmergencyRules.fs OracleSession.fs LatsSession.fs TestSessionData.fs Session.fs Votes.fs SessionText.fs FiscalEstimates.fs LatsBulletinIndex.fs SharedBulletinIndex.fs AuthorIndex.fs SubjectIndex.fs JournalIndex.fs CrIndex.fs ActIndex.fs SectionsAffected.fs LCAmendmentMemos.fs LCActMemos.fs LCDocuments.fs RecordsOfCommitteeProceedings.fs VetoMessages.fs AssemblyInfo.fs Journals.fs Calendars.fs ProposalText.fs AmendmentText.fs EnrolledBillsText.fs RDAttachments.fs ActText.fs Budget.fs LegislativeRules.fs DraftingManual.fs AdminRulesManual.fs DraftingFiles.fs ExecutiveOrders.fs CapitolHeadlines.fs TownLawForms.fs FolioBillHist.fs FolioLaw.fs FolioSessionImport.fsi FolioSessionImport.fs FolioSession.fs FolioMisc.fs FolioIndexes.fs FolioCr.fs Wislaw.fs Help.fs Disclaimers.fs Dnotes.fs CCC.fs LCMemos.fs oag.fs AdministrativeCodeCites.fs StatutesRepealedRenumbered.fs LRBUserProcedures.fs LRBDraftingManual.fs
19>FSC: error FS0193: The module/namespace 'Microsoft.FSharp.Linq.RuntimeHelpers' from compilation unit 'FSharp.Core' did not contain the namespace, module or type 'LeafExpressionConverter'
19>C:\Program Files (x86)\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets(155,9): warning MSB5021: "Fsc" and its child processes are being terminated in order to cancel the build.
19>C:\Program Files (x86)\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets(155,9): error : Build was canceled.
Your MSBuild output shows a reference to...
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v4.0\FSharp.Core.dll.
That's the F# 2.0 version of FSharp.Core. You need to reference the F# 3.0 version instead:
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\3.0\Runtime\v4.0\FSharp.Core.dll

Resources