Quantcast
Channel: MSBuild forum
Viewing all 2763 articles
Browse latest View live

what's happenning?

$
0
0

I am posting a screen that says it all.  The projects I have attempted to run in debug are derived from an almost identical solution that runs successfully. I cannot understand the diagnostic that is shown or venture a guess as to where I have perturbed the stability. Any clues or guesses will be welcome.


eps123


"TransformXml" "Destination" is not working because $(DeployPath) returns blank

$
0
0

In my ASP.Net Umbraco MVC application, I am trying to apply config file transformations to a config file other than web.config.

In my case the config file is at "Config/FullTextSearch.config". I am looking for the change to be applied to the copy of Config/FullTextSearch.config which is copied to the "Package" for subsequent use by Web Deploy.  As I understand it I think this means that the result should be copied to the destination at obj\Release\Package\PackageTmp (or similar for "Debug" configuration)?

To do this I am following guidance from the blog post at http://johan.driessen.se/posts/Applying-MSBuild-Config-Transformations-to-any-config-file-without-using-any-Visual-Studio-extensions.

As part of this I have made the following changes to my "Project" file:
       

    <Content Include="Config\FullTextSearch.config">
      <SubType>Designer</SubType>
    </Content>
    <Content Include="Config\FullTextSearch.Release.config" >
      <DependentUpon>FullTextSearch.config</DependentUpon>
    </Content>
    <Content Include="Config\FullTextSearch.Debug.config" >
    <DependentUpon>FullTextSearch.config</DependentUpon>
    </Content>
    <Content Include="Config\FullTextSearch.Test.config" >
    <DependentUpon>FullTextSearch.config</DependentUpon>
    </Content>

    and at the end of the project file:

    <UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.Tasks.dll" />
    <Target Name="AfterBuild">
    <TransformXml Source="Config\FullTextSearch.config" Transform="Config\FullTextSearch.$(Configuration).config" Destination="$(DeployPath)\Config\FullTextSearch.config" />
  </Target>

Unfortunatley the "TransformXml" "Destination" is not working because $(DeployPath) returns blank. I have checked this with <Message Text="DeployPath:  $(DeployPath)" /> .  The error I get is

1>  Transforming Source File: Config\FullTextSearch.config
1>    Applying Transform File: Config\FullTextSearch.Test.config
1>    Output File: \Config\FullTextSearch.config
1>C:\Clancy\A_TeraTastic\Dev\TeraTastic09\TeraTastic\TeraTastic.csproj(5781,5): error : Could not write Destination file: Could not find a part of the path 'C:\Config\FullTextSearch.config'.
1>  Transformation failed

Can anyone help me understand what I should be useing instead of $(DeployPath)  ?

Thanks

Terry Clancy
ClanceZ


Terry Clancy

Compilation failed, error in MSBuild: Object reference not set to an instance of an object.

$
0
0

I've installed Visual Studio 2015 Update 3 and the ASP.NET Core tools preview 2 on Windows 7. Then I tried to build a solution that contains .NET 4.6 C# projects, and one ASP.NET Core .NET 4.6 project. Everything builds and runs fine on my developer machine, but the build machine throws an error on build.

Here's the part of the output window in Visual Studio:

(...)
23>------ Neues Erstellen gestartet: Projekt: MyWeb, Konfiguration: Release Any CPU ------
23>  C:\Program Files\dotnet\dotnet.exe build "C:\GitLabCI\builds\024ca24f\0\team\VP\src\Server\MyWeb" --configuration Release --no-dependencies --build-base-path "C:\GitLabCI\builds\024ca24f\0\team\VP\artifacts\bin\VP.Server.MyWeb" --no-incremental
23>  Project MyWeb (.NETFramework,Version=v4.6) will be compiled because project is not safe for incremental compilation. Use --build-profile flag for more information.
23>  Compiling MyWeb for .NETFramework,Version=v4.6
23>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets(262,5): error : Object reference not set to an instance of an object.
23>  C:\Program Files\dotnet\dotnet.exe compile-csc @C:\GitLabCI\builds\024ca24f\0\team\VP\artifacts\bin\VP.Server.MyWeb\MyWeb\obj\Release\net46\dotnet-compile.rsp returned Exit Code 1
23>  Compilation failed.
23>      0 Warning(s)
23>      0 Error(s)
23>  Time elapsed 00:00:01.0574172
========== Alles neu erstellen: 22 erfolgreich, 1 fehlerhaft, 0 übersprungen ==========

What's wrong here?

Web Publish fails: "Unknown ProviderOption:DefiningProjectFullPath"

$
0
0

I am trying to get my build server up and running and ran into some problems.

The guys over at the TFS forums told me, i should try wether it works from inside Visual Studio or not and after i found out, that it does not they suggested i should ask the question here.

These are the Steps to reproduce:

-Install Windows Server (tried 2012 R2 and 2008 R2)

-Install TFS Express 2013 Update 2

-Install Visual Studio 2013 (Only check Microsoft Office Developer Tools and Microsoft Web Developer Tools)

-Install Update 1 for Visual Studio 2013

Using VS 2013 the Solution builds fine.

Trying to use Web Publish from inside VS gives the following log with error:

Transformed Web.config using C:\Builds\131\Senacor\Test\src\Senacor.Employee.EmployeeMasterData.Frontend\Web.Release.config into obj\Release\TransformWebConfig\transformed\Web.config.
Transformed obj\Release\TransformWebConfig\transformed\Web.config using C:\Builds\131\Senacor\Test\src\Senacor.Employee.EmployeeMasterData.Frontend\\Web.Test.config into obj\Release\ProfileTransformWebConfig\transformed\Web.config.
Copying all files to temporary location below for package/publish:
obj\Release\AspnetCompileMerge\Source.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v / -p C:\Builds\131\Senacor\Test\src\Senacor.Employee.EmployeeMasterData.Frontend\obj\Release\AspnetCompileMerge\Source -u -c C:\Builds\131\Senacor\Test\src\Senacor.Employee.EmployeeMasterData.Frontend\obj\Release\AspnetCompileMerge\TempBuildDir 
Auto ConnectionString Transformed obj\Release\AspnetCompileMerge\TempBuildDir\Views\Web.config into obj\Release\CSAutoParameterize\transformed\Views\Web.config.
Auto ConnectionString Transformed obj\Release\AspnetCompileMerge\TempBuildDir\Web.config into obj\Release\CSAutoParameterize\transformed\Web.config.
Copying all files to temporary location below for package/publish:
obj\Release\Package\PackageTmp.
Start Web Deploy Publish the Application/package to https://XXX:8172/msdeploy.axd?site=Default%20Web%20Site ...
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets(4255,5): Error : Web deployment task failed. (Unknown ProviderOption:DefiningProjectFullPath. Known ProviderOptions are:skipInvalid.)
Publish failed to deploy.

Weird Error: cl : Command line error D8022 : cannot open 'c:\users\admini~1\appdata\local\temp\tmpkisjcv.lnk'

$
0
0

11:25:02 Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24210 for x86 11:25:02 Copyright (C) Microsoft Corporation. All rights reserved. 11:25:02 cl : Command line error D8022 : cannot open 'c:\users\admini~1\appdata\local\temp\tmpkisjcv.lnk'

Anyone seen this error? Started happening after we migrated from VS2013 to VS2015u3


http://about.me/dmullaney

Building Windows Workflow with Microsoft.Build.Execution.BuildManager fails

$
0
0

I'm creating an application to build and publish a Windows Workflow Foundation project.
I have the following configuration for testing the build:

	Dictionary<String, String> globalProperty = new Dictionary<String, String>();
	globalProperty.Add("Configuration", "Release");
	globalProperty.Add("Platform", "Any CPU");
	globalProperty.Add("OutputPath", $@"bin\release");
	globalProperty.Add("VisualStudioVersion", "14.0");
	globalProperty.Add("DeployOnBuild", "true");
	globalProperty.Add("WebConfigTransformOutput", @"obj\Release\TransformWebConfig\transformed\Web.config");
	globalProperty.Add("PublishProfile", "WWF Release.pubxml");
	globalProperty.Add("DeleteExistingFiles", "true");
	globalProperty.Add("WebPublishMethod", "FileSystem");
	globalProperty.Add("publishUrl", @"C:\Test\WWF\");

	BuildRequestData buildRequest = new BuildRequestData(
		@"C:\Dev\WWF\MyWWF\MyWWF.csproj",
		globalProperty,"14.0",
		new[] { "Clean", "Build", "WebPublish" },
		null);

	ProjectCollection projectCollection = new ProjectCollection();

	BuildParameters buildParameters = new BuildParameters(projectCollection)
	{
		DefaultToolsVersion = "14.0",
		OnlyLogCriticalEvents = false,
		DetailedSummary = true,
		MaxNodeCount = Environment.ProcessorCount,
		BuildThreadPriority = System.Threading.ThreadPriority.Normal,
		MemoryUseLimit = 4000,
		Loggers =
			new List<ILogger>
			{
				new FileLogger
				{
					Parameters = @"logfile=C:\Test\test.log",
					Verbosity = LoggerVerbosity.Diagnostic
				}
			}
	};

	BuildResult buildResult = BuildManager.DefaultBuildManager.Build(buildParameters, buildRequest);

If I run the application in Visual Studio, it works fine: the project is built and published to the defined location.
However, if I run the application from the file system (bin\Debug or bin\Release folders) it fails during the build.

I've look into the logs and this is what I've found:

When running the application (Debug or Release) in Visual Studio:

1>Done building target "XamlTemporaryAssemblyGeneration" in project "MyWWF.csproj".: (TargetId:104)
Target "XamlMarkupCompileReadPass2Flag" skipped. Previously built successfully.
1>Target "XamlMarkupCompilePass2: (TargetId:112)" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Xaml.targets" from project "C:\Dev\WWF\MyWWF\MyWWF.csproj" (target "PrepareResources" depends on it):
Task "Message" skipped, due to false condition; ('$(MSBuildTargetsVerbose)'=='true') was evaluated as (''=='true').
Task "Message" skipped, due to false condition; ('$(MSBuildTargetsVerbose)'=='true') was evaluated as (''=='true').
Task "Message" skipped, due to false condition; ('$(MSBuildTargetsVerbose)'=='true') was evaluated as (''=='true').
Using "CompilationPass2Task" task from assembly "C:\Windows\Microsoft.NET\Framework\v4.0.30319\\XamlBuildTask.dll".
Task "CompilationPass2Task" (TaskId:83)
TextExpressionCompiler: Ignoring unnamed variable. (TaskId:83)
TextExpressionCompiler: Ignoring unnamed variable. (TaskId:83)
Done executing task "CompilationPass2Task". (TaskId:83)


When running the application (MyTestBuild.exe) from the bin\Debug or bin\Release folders:

1>Done building target "XamlTemporaryAssemblyGeneration" in project "MyWWF.csproj".: (TargetId:104)
Target "XamlMarkupCompileReadPass2Flag" skipped. Previously built successfully.
1>Target "XamlMarkupCompilePass2: (TargetId:112)" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Xaml.targets" from project "C:\Dev\WWF\MyWWF\MyWWF.csproj" (target "PrepareResources" depends on it):
Task "Message" skipped, due to false condition; ('$(MSBuildTargetsVerbose)'=='true') was evaluated as (''=='true').
Task "Message" skipped, due to false condition; ('$(MSBuildTargetsVerbose)'=='true') was evaluated as (''=='true').
Task "Message" skipped, due to false condition; ('$(MSBuildTargetsVerbose)'=='true') was evaluated as (''=='true').
Using "CompilationPass2Task" task from assembly "C:\Windows\Microsoft.NET\Framework\v4.0.30319\\XamlBuildTask.dll".
Task "CompilationPass2Task" (TaskId:83)
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Xaml.targets(347,5): error : Type 'MyWWF.VoidPaymentWorkflow.Activities.VoidPayment' cannot be inspected for expressions that need compilation.  The constructor threw exception: 'Could not load file or assembly 'file:///C:\Dev\WWF\MyWWF\packages\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll' or one of its dependencies. The system cannot find the file specified.'
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Xaml.targets(347,5): error : Type 'MyWWF.SaveInboundPaymentWorkflow.Activities.SaveInboundPayment' cannot be inspected for expressions that need compilation.  The constructor threw exception: 'Could not load file or assembly 'file:///C:\Dev\WWF\MyWWF\packages\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll' or one of its dependencies. The system cannot find the file specified.'
Done executing task "CompilationPass2Task" -- FAILED. (TaskId:83)


The file (C:\Dev\WWF\MyWWF\packages\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll) is present in that location. 
I've tried different configurations and even executed the application as administrator, but nothing seems to work.  

Trouble with BeforePublish target in VS 2015

$
0
0

What used to work in VS 2010, no longer works in VS 2015.  We have a clickonce application that requires a DLL that requires the executable to be signed.  The signing procedure occurs in the post build event and produces a license file in the output directory.  This license file must be published along with the rest of the application.  The following code snippet used to work fine in 2010.  We recently switched to using 2015, and it quit working.  In 2015, the license file no longer gets published.

...

  <ItemGroup>
    <AdditionalPublishFile Include="$(OutputPath)\$(AssemblyName).lic">
      <Visible>False</Visible>
    </AdditionalPublishFile>
  </ItemGroup>    
  <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
  <Target Name="BeforePublish">
    <Touch Files="@(IntermediateAssembly)" />
    <CreateItem Include="@(AdditionalPublishFile)" AdditionalMetadata="TargetPath=%(FileName)%(Extension);IsDataFile=false">
      <Output TaskParameter="Include" ItemName="_DeploymentManifestFiles" />
    </CreateItem>
  </Target> 

...


Can MSBuild 2015 be used to build all previous MS project for Sonar Qube?

$
0
0

The reason I ask this question is because I got the following errors from my Jenkins slave build.  

Can we just use MSBuild2015 to build all MS projects which used to be build with different version of VS?

RestorePackages:"F:\Sonar\workspace\SonarQube_Automation\csharpvs2012fang\C#\.nuget\NuGet.exe" install "F:\Sonar\workspace\SonarQube_Automation\csharpvs2012fang\C#\MvcMovie\packages.config" -source ""  -NonInteractive -RequireConsent -solutionDir "F:\Sonar\workspace\SonarQube_Automation\csharpvs2012fang\C#\ "
F:\Sonar\workspace\SonarQube_Automation\csharpvs2012fang\C#\.nuget\nuget.targets(92,9): error : The given path's format is not supported. [F:\Sonar\workspace\SonarQube_Automation\csharpvs2012fang\C#\MvcMovie\MvcMovie.csproj]
F:\Sonar\workspace\SonarQube_Automation\csharpvs2012fang\C#\.nuget\nuget.targets(92,9): error MSB3073: The command ""F:\Sonar\workspace\SonarQube_Automation\csharpvs2012fang\C#\.nuget\NuGet.exe" install "F:\Sonar\workspace\SonarQube_Automation\csharpvs2012fang\C#\MvcMovie\packages.config" -source ""  -NonInteractive -RequireConsent -solutionDir "F:\Sonar\workspace\SonarQube_Automation\csharpvs2012fang\C#\ "" exited with code 1. [F:\Sonar\workspace\SonarQube_Automation\csharpvs2012fang\C#\MvcMovie\MvcMovie.csproj]
Done Building Project "F:\Sonar\workspace\SonarQube_Automation\csharpvs2012fang\C#\MvcMovie\MvcMovie.csproj" (Rebuild target(s)) -- FAILED.
Done Building Project "F:\Sonar\workspace\SonarQube_Automation\csharpvs2012fang\C#\MvcMovieRTM.sln" (rebuild target(s)) -- FAILED.

Build FAILED.


General Property Page (Project), programmatically change Target Name

$
0
0

I´m trying to programmtically access to the TargetName property of Visual Studio General Property Page. I cannot find any way to do this meanwhile other properties, such as the Intermediate Directory, are accessible through variables such VCConfiguration::IntermediateDirectory Property.

Is there any way to change TargetName?

Thanks in advance.

msbuild /p:DeployOnBuild /p:PublishProfile="xxx" ignores LastUsedBuildConfiguration setting

$
0
0

Our publishing profiles all specify different build Configurations, and it's very important that the right configuration is used with the right publishing profile (given they control which web.config modifications to make, which turn on and off access to testing features). Within Visual Studio this works fine, but with command line msbuild it seems that it always builds with Configuration=Debug and ignores the LastUsedBuildConfiguration stored inside the PublishProfile.

Is this really by design and is there some other command line option to tell msbuild to use this configuration?

TIA

Dylan

Building WPF: updateuid access denied on *.uidbackup files

$
0
0

Hi!

When we try to do msbuild /t:updateuid wpfprogram.csproj we fail all the time due to to "access denied" on the obj\debug\somexamlfile.uidbackup

Anyone else seeing this ?

Windows 10 Thumb Print Reader Feature

$
0
0

Will Windows 10 natively support fingerprint readers for doing more than just logging in to windows? like for example counting how many times you tap your thumb on the thumb print reader, or how long you hold your thumb on the reader, and who put there thumb on the reader.

and if you can do that, can some one tell me how to code that in visual studio?

C# Suppress MS Fakes warnings

$
0
0

How can I suppress the warnings generated by MS Fakes in a build ? I already edited the XML file to generate only the elements we need, but it’s not enough.

My XML:

<Fakes xmlns="http://schemas.microsoft.com/fakes/2011/" Diagnostic="true"><Assembly Name="Common.Api"/><StubGeneration><Clear /></StubGeneration><ShimGeneration><Clear /><Add FullName="RestServiceHelper" /></ShimGeneration></Fakes>

First warning:
"Some fakes could not be generated. For complete details, set Diagnostic attribute of the Fakes element in this file to 'true' and rebuild the project."

With debug:"Cannot generate shim for RestServiceHelper`2+<>c: type is not supported because of internal limitations."

Thanks

Preprocesser: with unknown number of 'include' files

$
0
0
I usually like to write a preprocesser in a new language inorder to learn the language.  That language is C#.  I have to deal with "include" file in the program. How do I express an arbitrary number of names for the instantiation of the 'include' files?  I thought about trying to 'type' an array as a StreamReader.  That way I could deal with the problem a LIFO stack.  My gut feeling is that that is not an appropriate way of doing it.

Error MSB4062 Microsoft Visual Studio 2013

$
0
0

Hi everyone,

here is the error I got after trying to build a simple program without any CUDA parallelization:

error MSB4062: The "Nvda.Build.CudaTasks.SanitizePaths" task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\Nvda.Build.CudaTasks.v7.5.dll. Could not load file or assembly 'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Impossibile trovare il file specificato. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

I also post the simple code that I took from a tutorial from Nvidia:

#include <stdio.h>
#define SIZE 1024

void VectorAdd(int *a, int *b, int *c, int n)
{
	int i;

	for (i = 0; i < n; ++i)
	{
		c[i] = a[i] + b[i];
	}
}

int main()
{
	int *a, *b, *c;

	a = (int *)malloc(SIZE*sizeof(int));
	b = (int *)malloc(SIZE*sizeof(int));
	c = (int *)malloc(SIZE*sizeof(int));

	for (int i = 0; i < SIZE; ++i)
	{
		a[i] = i;
		b[i] = i;
		c[i] = 0;
	}

	VectorAdd(a, b, c, SIZE);

	for (int i = 0; i < 10; ++i)
	{
		printf("c[%d] = %d\n", i, c[i]);
	}

	free(a);
	free(b);
	free(c);

	return 0;

}

How can I solve the error? Thank you in advance!


Resource naming warning with a GenerateResource task

$
0
0

Hello,

I'd like to generate automatically the Designer resource files during the build process.

To achieve that I've added this Task:

<Target Name="BeforeBuild"><CallTarget Targets="GenerateDesignerFiles" /></Target><Target Name="GenerateDesignerFiles"><Message Text="Deleting old Designer Files..." /><Delete Files="@(EmbeddedResource->'%(RootDir)%(Directory)%(Filename).resources')" /><Delete Files="@(EmbeddedResource->'%(RootDir)%(Directory)%(Filename).designer.cs')" /><Message Text="Generating Designer Files..." /><GenerateResource
Sources="@(EmbeddedResource)"
StronglyTypedLanguage="C#"
StronglyTypedClassName="%(Filename)" StronglyTypedNamespace="@(EmbeddedResource->'%(CustomToolNamespace)')"
StronglyTypedFileName="@(EmbeddedResource->'%(RootDir)%(Directory)%(Filename).designer.cs')"
PublicClass="true"></GenerateResource><Message Text="Generating Designer Files complete." /></Target>

After compiling I'm getting a warning:

"The base name of your output file, "Default", does not match the base name used by the strongly typed resources, "{Namespace}.Default".  In order for the strongly typed resources to work correctly, you will need to rename your output file to "{Namespace}.Default.resources"

My resource file is named Default.resx and is under a "Strings" Folder.

How can I get rid of this warning? Thank's in advance, regards

Redirection error

$
0
0

I am using Social site (Facebook,Google and Linkedin)login for my mvc website created using VS2015. its working fine on local server but after diploy on godady server its not redirecting properly to dedicated action method its redirecting to home page and showing so symbols in URL like(!#) pls help me. i dont khow what the problem and where the problem pls help.

thank you 

SDKToolsPath and SDK40ToolsPath are empty

$
0
0

Hello,

I installed Microsoft BUILD Tools 2015 and Windows 10 SDK on a build machine with Windows 7 Professional. However, when I attempt to build a .sln using msbuild14 I am getting errors because LC.exe cannot be found.

Running msbuild with /v:diags indicated that SDKToolsPath and SDK40ToolsPath are empty.

Any ideea about how to resolve this issue excepting to fully install Visual Studio 2015? I checked in the registry and the entries for Win 10 SDK and MSBUILD seems to be ok.

I tried to use the switch /ToolsVersion:14.0 in the msbuild command line but I obtained the same result.

Thanks for help,

Mircea



NuGet packages are missing in MSBuild 2015

$
0
0
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 9/14/2016 4:19:05 PM.
Project "F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles.sln" on node 1 (rebuild target(s)).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|Any CPU".
Project "F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles.sln" (1) is building "F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles\shanuMVCUserRoles.csproj" (2) on node 1 (Rebuild target(s)).
F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles\shanuMVCUserRoles.csproj(286,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see  The missing file is ..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props.
Done Building Project "F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles\shanuMVCUserRoles.csproj" (Rebuild target(s)) -- FAILED.
Done Building Project "F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles.sln" (rebuild target(s)) -- FAILED.

Build FAILED.

"F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles.sln" (rebuild target) (1) ->"F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles\shanuMVCUserRoles.csproj" (Rebuild target) (2) ->
(EnsureNuGetPackageBuildImports target) ->
  F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles\shanuMVCUserRoles.csproj(286,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see The missing file is ..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props.

Error MSB3073 When build with MSBuild 2015

$
0
0
  • "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" /t:rebuild NuGet_ClassLibrary.sln /p:Configuration=Debug
    Microsoft (R) Build Engine version 14.0.25420.1
    Copyright (C) Microsoft Corporation. All rights reserved.
    
    Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
    Build started 9/14/2016 3:45:52 PM.
    Project "F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary.sln" on node 1 (rebuild target(s)).
    ValidateSolutionConfiguration:
      Building solution configuration "Debug|Any CPU".
    Project "F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary.sln" (1) is building "F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary\NuGet_ClassLibrary.csproj" (2) on node 1 (Rebuild target(s)).
    RestorePackages:"F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.exe" install "F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary\packages.config" -source ""  -NonInteractive -RequireConsent -solutionDir "F:\Sonar\workspace\SonarQube_Automation\006\ "
    F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.targets(100,9): error : The given path's format is not supported. [F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary\NuGet_ClassLibrary.csproj]
    F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.targets(100,9): error MSB3073: The command ""F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.exe" install "F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary\packages.config" -source ""  -NonInteractive -RequireConsent -solutionDir "F:\Sonar\workspace\SonarQube_Automation\006\ "" exited with code 1. [F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary\NuGet_ClassLibrary.csproj]
    Done Building Project "F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary\NuGet_ClassLibrary.csproj" (Rebuild target(s)) -- FAILED.
    Project "F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary.sln" (1) is building "F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary1\ClassLibrary1.csproj" (4) on node 1 (Rebuild target(s)).
    RestorePackages:"F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.exe" install "F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary1\packages.config" -source ""  -NonInteractive -RequireConsent -solutionDir "F:\Sonar\workspace\SonarQube_Automation\006\ "
    F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.targets(100,9): error : The given path's format is not supported. [F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary1\ClassLibrary1.csproj]
    F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.targets(100,9): error MSB3073: The command ""F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.exe" install "F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary1\packages.config" -source ""  -NonInteractive -RequireConsent -solutionDir "F:\Sonar\workspace\SonarQube_Automation\006\ "" exited with code 1. [F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary1\ClassLibrary1.csproj]
    Done Building Project "F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary1\ClassLibrary1.csproj" (Rebuild target(s)) -- FAILED.
    Project "F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary.sln" (1) is building "F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary2\ClassLibrary2.csproj" (5) on node 1 (Rebuild target(s)).
    RestorePackages:"F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.exe" install "F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary2\packages.config" -source ""  -NonInteractive -RequireConsent -solutionDir "F:\Sonar\workspace\SonarQube_Automation\006\ "
    F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.targets(100,9): error : The given path's format is not supported. [F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary2\ClassLibrary2.csproj]
    F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.targets(100,9): error MSB3073: The command ""F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.exe" install "F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary2\packages.config" -source ""  -NonInteractive -RequireConsent -solutionDir "F:\Sonar\workspace\SonarQube_Automation\006\ "" exited with code 1. [F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary2\ClassLibrary2.csproj]
    Done Building Project "F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary2\ClassLibrary2.csproj" (Rebuild target(s)) -- FAILED.
    Done Building Project "F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary.sln" (rebuild target(s)) -- FAILED.
    
    Build FAILED.
    
    "F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary.sln" (rebuild target) (1) ->"F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary\NuGet_ClassLibrary.csproj" (Rebuild target) (2) ->
    (RestorePackages target) ->
      F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.targets(100,9): error : The given path's format is not supported. [F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary\NuGet_ClassLibrary.csproj]
      F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.targets(100,9): error MSB3073: The command ""F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.exe" install "F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary\packages.config" -source ""  -NonInteractive -RequireConsent -solutionDir "F:\Sonar\workspace\SonarQube_Automation\006\ "" exited with code 1. [F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary\NuGet_ClassLibrary.csproj]"F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary.sln" (rebuild target) (1) ->"F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary1\ClassLibrary1.csproj" (Rebuild target) (4) ->
      F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.targets(100,9): error : The given path's format is not supported. [F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary1\ClassLibrary1.csproj]
      F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.targets(100,9): error MSB3073: The command ""F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.exe" install "F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary1\packages.config" -source ""  -NonInteractive -RequireConsent -solutionDir "F:\Sonar\workspace\SonarQube_Automation\006\ "" exited with code 1. [F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary1\ClassLibrary1.csproj]"F:\Sonar\workspace\SonarQube_Automation\006\NuGet_ClassLibrary.sln" (rebuild target) (1) ->"F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary2\ClassLibrary2.csproj" (Rebuild target) (5) ->
      F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.targets(100,9): error : The given path's format is not supported. [F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary2\ClassLibrary2.csproj]
      F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.targets(100,9): error MSB3073: The command ""F:\Sonar\workspace\SonarQube_Automation\006\.nuget\NuGet.exe" install "F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary2\packages.config" -source ""  -NonInteractive -RequireConsent -solutionDir "F:\Sonar\workspace\SonarQube_Automation\006\ "" exited with code 1. [F:\Sonar\workspace\SonarQube_Automation\006\ClassLibrary2\ClassLibrary2.csproj]
    
        0 Warning(s)
        6 Error(s)
Viewing all 2763 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>