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

The “CL” task failed unexpectedly in vs2017

$
0
0

I've got into trouble when I try to build a new C++ Project. The INFO like this. 

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018: The "CL" task failed unexpectedly.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018: System.TypeInitializationException: The type initializer for 'Microsoft.Build.Utilities.FileTracker' threw an exception. ---> System.UnauthorizedAccessException: Access denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018:    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018:    at Microsoft.Build.Shared.NativeMethodsShared.ThrowExceptionForErrorCode(Int32 errorCode)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018:    at Microsoft.Build.Shared.NativeMethodsShared.GetLongFilePath(String path)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018:    at Microsoft.Build.Utilities.FileTracker..cctor()
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018:    --- End of inner exception stack trace ---
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018:    at Microsoft.Build.CPPTasks.CL.ComputeOutOfDateSources()
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018:    at Microsoft.Build.CPPTasks.TrackedVCToolTask.SkipTaskExecution()
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018:    at Microsoft.Build.Utilities.ToolTask.Execute()
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018:    at Microsoft.Build.CPPTasks.TrackedVCToolTask.Execute()
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

I really did nothing to my project configurations, and this is the C++ program I tried to build.

#include "stdafx.h"


int main()
{
    return 0;
}

I've got my Visual Studio 2017 reinstalled, but it seems to be useless


warning MSB3277 conflict between mscorlib...

$
0
0

I am trying to upgrade a program that has three different languages from VS2008 to VS2015 and running into a warning MSB3277 which is a conflict between two different versions of mscorlib.  The languages:  native C/C++ static library, C++/CLI assembly, two C# assemblies and one final C# exe.

It looks like the native C/C++ is compiling fine, along with the C++/CLI.  The problem comes in compiling the C# exe, along with theMSB3277 it cannot see one of the namespaces defined in the C++/CLI.  My theory is that themscorlib issue is between the C++/CLI and the C# code causing the namespace not to be found.  

Here is what I get when I turn on verbose logging.  It looks to me like the 3rd party libraries which are .Net 4.0 are still using the .Net v2 of mscorlib, is that correct?  If so, how do I fix it?

1>  There was a conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes". (TaskId:13)
1>      "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" was chosen because it was primary and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes" was not. (TaskId:13)
1>      References which depend on "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\mscorlib.dll]. (TaskId:13)
1>          C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\mscorlib.dll (TaskId:13)
1>            Project file item includes which caused reference "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\mscorlib.dll". (TaskId:13)
1>              C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\mscorlib.dll (TaskId:13)
1>              System.Data.SQLite, Version=1.0.108.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL (TaskId:13)
1>              C:\mainSolution\exeProgram\Debug\cppcliLibrary.dll (TaskId:13)
1>              Common.Logging, Version=3.0.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL (TaskId:13)
1>              log4net (TaskId:13)
1>              Spring.Core, Version=2.0.1.45000, Culture=neutral, PublicKeyToken=65e474d141e25e07, processorArchitecture=MSIL (TaskId:13)
1>          C:\licenseMgr\3rdPartyLibraries\log4net-2.0.8\bin\net\4.5\release\log4net.dll (TaskId:13)
1>            Project file item includes which caused reference "C:\licenseMgr\3rdPartyLibraries\log4net-2.0.8\bin\net\4.5\release\log4net.dll". (TaskId:13)
1>              C:\mainSolution\exeProgram\Debug\cppcliLibrary.dll (TaskId:13)
1>              log4net (TaskId:13)
1>          C:\mainSolution\exeProgram\packages\System.Data.SQLite.Core.1.0.108.0\lib\net46\System.Data.SQLite.dll (TaskId:13)
1>            Project file item includes which caused reference "C:\mainSolution\exeProgram\packages\System.Data.SQLite.Core.1.0.108.0\lib\net46\System.Data.SQLite.dll". (TaskId:13)
1>              System.Data.SQLite, Version=1.0.108.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL (TaskId:13)
1>          C:\mainSolution\exeProgram\packages\Spring.Core.2.0.1\lib\net45\Spring.Core.dll (TaskId:13)
1>            Project file item includes which caused reference "C:\mainSolution\exeProgram\packages\Spring.Core.2.0.1\lib\net45\Spring.Core.dll". (TaskId:13)
1>              Spring.Core, Version=2.0.1.45000, Culture=neutral, PublicKeyToken=65e474d141e25e07, processorArchitecture=MSIL (TaskId:13)
1>          C:\mainSolution\exeProgram\packages\Common.Logging.3.0.0\lib\net40\Common.Logging.dll (TaskId:13)
1>            Project file item includes which caused reference "C:\mainSolution\exeProgram\packages\Common.Logging.3.0.0\lib\net40\Common.Logging.dll". (TaskId:13)
1>              Spring.Core, Version=2.0.1.45000, Culture=neutral, PublicKeyToken=65e474d141e25e07, processorArchitecture=MSIL (TaskId:13)
1>              Common.Logging, Version=3.0.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL (TaskId:13)
1>          C:\mainSolution\exeProgram\Debug\cppcliLibrary.dll (TaskId:13)
1>            Project file item includes which caused reference "C:\mainSolution\exeProgram\Debug\cppcliLibrary.dll". (TaskId:13)
1>              C:\mainSolution\exeProgram\Debug\cppcliLibrary.dll (TaskId:13)
1>      References which depend on "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes" []. (TaskId:13)
1>          C:\mainSolution\exeProgram\packages\Common.Logging.Core.3.0.0\lib\net40\Common.Logging.Core.dll (TaskId:13)
1>            Project file item includes which caused reference "C:\mainSolution\exeProgram\packages\Common.Logging.Core.3.0.0\lib\net40\Common.Logging.Core.dll". (TaskId:13)
1>              Common.Logging.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL (TaskId:13)
1>              Common.Logging, Version=3.0.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL (TaskId:13)
1>              Spring.Core, Version=2.0.1.45000, Culture=neutral, PublicKeyToken=65e474d141e25e07, processorArchitecture=MSIL (TaskId:13)
1>          C:\mainSolution\exeProgram\packages\Spring.Core.2.0.1\lib\net45\Spring.Core.dll (TaskId:13)
1>            Project file item includes which caused reference "C:\mainSolution\exeProgram\packages\Spring.Core.2.0.1\lib\net45\Spring.Core.dll". (TaskId:13)
1>              Spring.Core, Version=2.0.1.45000, Culture=neutral, PublicKeyToken=65e474d141e25e07, processorArchitecture=MSIL (TaskId:13)
1>          C:\mainSolution\exeProgram\packages\Common.Logging.3.0.0\lib\net40\Common.Logging.dll (TaskId:13)
1>            Project file item includes which caused reference "C:\mainSolution\exeProgram\packages\Common.Logging.3.0.0\lib\net40\Common.Logging.dll". (TaskId:13)
1>              Spring.Core, Version=2.0.1.45000, Culture=neutral, PublicKeyToken=65e474d141e25e07, processorArchitecture=MSIL (TaskId:13)
1>              Common.Logging, Version=3.0.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL (TaskId:13)

MSBuild complains of command line change in VC++ VS 2010 Project build

$
0
0

We have a solution which contains some 200 projects. Most of them are VC++ projects. We have been hit with rebuild issues for some projects. In some cases MSBuild process is still running in the background after the build is complete causing VS 2010 to crash.

After troubleshooting the issue further, i noticed that MSBuild complains of command line change and rebuilds cpp files.

The issue is reproducable almost all the time, after building the project from the master solution if i rebuild the project separetly from another VS 2010 instance, it claims that the command line has changed and it rebuilds it.

Forcing rebuild of all source files due to a change in the command line since the last build. (TaskId:22)

After comparing both the command lines, the only difference I find is the /b argument that has been specified for the tracker.exe

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\Tracker.exe /d C:\Windows\Microsoft.NET\Framework\v4.0.30319\FileTracker.dll /i C:\Src\trunk\tempBuild\x64\Debug\WinTools /r C:\SRC\TRUNK\LIBS\WINTOOLS\STDAFX.CPP /b MSBuildConsole_CancelEventbc42312c663c4b3fbf7ad9c0d03688e2  /c "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64\CL.exe"  /c /IC:\Src\trunk\commonProperties\..\PrecompiledHeader /IC:\Src\trunk\commonProperties\..\com /IC:\Src\trunk\commonProperties\..\libs /IC:\Src\trunk\commonProperties\..\libs\Imports\x64\Debug\ /Zi /nologo /W3 /WX- /MP /Od /D OEMRESOURCE /D WINTOOLS_BUILD /D WIN32 /D _WINDOWS /D WINVER=0x0502 /D _CRT_SECURE_NO_DEPRECATE /D _WINDLL /D _AFXDLL /D _AFXEXT /D _DEBUG /D _WINDLL /GF /Gm- /EHsc /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Yc"StdAfx.h" /Fp"C:\Src\trunk\commonProperties\..\tempBuild\x64\Debug\WinTools\PrecompiledHeader.pch" /Fo"C:\Src\trunk\commonProperties\..\tempBuild\x64\Debug\WinTools\\" /Fd"C:\Src\trunk\commonProperties\..\tempBuild\x64\Debug\WinTools\ProgramDatabase.pdb" /Gd /TP /errorReport:prompt StdAfx.cpp (TaskId:22)

Especially the part which is highlighted below:

/b MSBuildConsole_CancelEventbc42312c663c4b3fbf7ad9c0d03688e2

Any thoughts on why would that part be different when executing the same project from two different instances of VS 2010 or is just by design? Am I troubleshooting the issue in an incorrect manner?


Please remember to mark the replies as answers if they help Thanks, --Kuldeep

dotnet build vs msbuild

$
0
0

I have dotnet CORE 2 installed and I use it for my CORE apps.

Is “dotnet build c:\src\mysolution.sln /tv:14.0” for CORE apps only? Or can this be used for .NET 4.6.* framework as well? Or is “msbuild c:\src\mysolution.sln” the only option for .NET 4.6.*

In sum, is the “dotnet” functionality only for CORE apps to target other frameworks?  Or can it be used vice-versa for pre-CORE builds?  


Please Vote &/or "Mark As Answer" if this post is helpful to you. Thanks and happy coding :D

How to Add Nuget to Entire Solution?

$
0
0

Hi I am newish to .NET. I was thrown on this project so some opinionated stuff related to .NET I will not know. 

I am building a continuous build pipeline with .NET, Jenkins and Nuget inside of Nexus. 

This project I am building it for has a solution that controls several different projects. I was wondering if I need to create a *.nuspec file for every *.vbproj file for every project or if there was a way to do this for just the solution? 

Linking Openssl library(calling convention _cdecl) with a dll(calling convention _stdcall)

$
0
0

Hi,

I am linking openssl library(openssl.lib) to an dll. When I build this dll, I found few linker errors. I debugged and found that linker errors are because of calling convention of dll. My dll is using _stdcall calling convention whereas openssl is using _cdecl calling convention. I can't change the calling convention of my dll since it is part of existing solution. So I tried to change the calling convention of openssl to _stdcall. But I could not do, it ended up in following build errors.

\crypto\ui\ui_openssl.c(591) : error C2440: 'function' : cannot convert from 'void (__stdcall *)(int)' to 'void (__cdecl *)(int)' .\crypto\ui\ui_openssl.c(591) : warning C4024: 'signal' : different types for formal and actual parameter 2 .\crypto\ui\ui_openssl.c(591) : error C2440: '=' : cannot convert from 'void (__cdecl *)(int)' to 'void (__stdcall *)(int)' .\crypto\ui\ui_openssl.c(592) : error C2440: 'function' : cannot convert from 'void (__stdcall *)(int)' to 'void (__cdecl *)(int)'

Lines of code causing the build errors are:

staticvoid pushsig(void){#ifndef OPENSSL_SYS_WIN32int i;#endif#ifdef SIGACTIONstruct sigaction sa;

 memset(&sa,0,sizeof sa);
 sa.sa_handler=recsig;#endif#ifdef OPENSSL_SYS_WIN32
 savsig[SIGABRT]=signal(SIGABRT,recsig);// **line 591**
 savsig[SIGFPE]=signal(SIGFPE,recsig);// **line 592**
 savsig[SIGILL]=signal(SIGILL,recsig);

How can I build the openssl library with _stdcall(/Gz) calling convention? Or is there any other solution to this ?

Note : signal is a windows API(calling convention is _cdecl). Please refer this link https://msdn.microsoft.com/en-us/library/xdkz3x12.aspx

Thanks, Sathish.

Unable to build a Full Trust App Package Project

$
0
0

I have created a Full Trust App Package as described https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-packaging-dot-net

The wapproj builds and runs fine from Visual Studio UI. However, when I use MSBuild , I am getting errors which I cannot decipher:

"C:\Users\...\SampleAppFullTrust\SampleAppFullTrust.wapproj" (default target) (1) ->
(_WapProjGetProjectClosure target) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(283,5): error MSB4184: The expression "[System.IO.Path]::GetFullPath(C:\User
s\...\src\FullTrustProcess\*Undefined*\)" cannot be evaluated. Illegal characters in path.  C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\bin\M
icrosoft.Common.CurrentVersion.targets [C:\Users\...\src\samples\SampleAppFullTrust\SampleAppFullTrust.wapproj]

    0 Warning(s)
    1 Error(s) 

Can somebody pls help me in this? I need to rely on MSBuild to generate builds from the build machine.


-vineeth

Run build on multiple agents to reduce time

$
0
0

Hi,

I'm using TFS2018 as my source control and web based builds for building the projects.

I have a build definition which has multiple solutions to build.

I would like to leverage the Parallelism execution plan, where in I would like to build each solution on different agents. Is it possible, if so how?


What would happen if I commented out *.targets files?

$
0
0

Hello,

I have inherited some code and in the csproj file they are referring to some abcd.targets file. Unfortunately those *.targets  files are missing in the source code. So I commented that reference in the *.csproj file. The binary builds fine. My Googling told me I cannot trust the binary to work error/issue less. My question is when the *.targets file is not given will the binary built default to a fixed *.targets value? Will it atleast do the lowest level of work it is supposed to do without crashing?  Example, if my program were to be doing all math functions including transforms, integration and differentiation will it atleast to do simple addition and subtraction? 

Thanks

ananda

VisualStudioRemoteeployer not getting uninstalled properly

$
0
0

Hi,

Sometimes the VisualStudioRemoteDeployer service in our Remote Server is not getting uninstalled properly and as a result several services appear in stopped state. I understand that, ideally these services should be installed and uninstalled automatically and also that there is no harm in manually removing services in such cases. But manually removing the services is complicated for us sometimes due to the approval process we have to follow as it involves servers restarts. 

Is there a way to avoid this issue where services are not being uninstalled properly?

Thanks

Vishnu

I am getting this error when I am trying to export data through Visual Studio 15.7

$
0
0

I am getting this below error when I am trying to export data through Visual studio 15.7

[Conversion Table]

Cannot locate SSIS conversion file C:\Program Files\Microsoft SQL Server\140\DTS\binn\DtwTypeConversion.xml

How Can I get TFS Build 2015 to Use MSBuild from Visual Studio 2017

$
0
0

Hi all,

I'm trying to get TFS Build 2015 (XAML build using the Default Process Template) to use the MSBuild.exe from Visual Studio 2017.  I've googled around for a bit and see that some have just edited the .xaml process template to add a Tool Path.  I tried that, but received messages

Exception Message: Cannot set unknown member 'Microsoft.TeamFoundation.Build.Activities.RunMSBuild.ToolPath'.

Since I'm using the Default Process Template and some were using the Upgrade template, maybe that is the issue.

Is there any way to set the Default template to use the Visual Studio 2017 MSBuild and tools?  Here is the template contents...

<Activity x:Class="TfsBuild.Process" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mt="clr-namespace:Microsoft.TeamFoundation;assembly=Microsoft.TeamFoundation.Common" xmlns:mtbc="clr-namespace:Microsoft.TeamFoundation.Build.Client;assembly=Microsoft.TeamFoundation.Build.Client" xmlns:mtbco="clr-namespace:Microsoft.TeamFoundation.Build.Common;assembly=Microsoft.TeamFoundation.Build.Common" xmlns:mtbw="clr-namespace:Microsoft.TeamFoundation.Build.Workflow;assembly=Microsoft.TeamFoundation.Build.Workflow" xmlns:mtbwa="clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Activities;assembly=Microsoft.TeamFoundation.Build.Workflow" xmlns:mtba="clr-namespace:Microsoft.TeamFoundation.Build.Activities;assembly=Microsoft.TeamFoundation.Build.Activities" xmlns:mtbac="clr-namespace:Microsoft.TeamFoundation.Build.Activities.Core;assembly=Microsoft.TeamFoundation.Build.Activities" xmlns:mtbag="clr-namespace:Microsoft.TeamFoundation.Build.Activities.Git;assembly=Microsoft.TeamFoundation.Build.Activities" xmlns:mtbat="clr-namespace:Microsoft.TeamFoundation.Build.Activities.TeamFoundation;assembly=Microsoft.TeamFoundation.Build.Activities" xmlns:mtbwt="clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Tracking;assembly=Microsoft.TeamFoundation.Build.Workflow" xmlns:mttbb="clr-namespace:Microsoft.TeamFoundation.TestImpact.BuildIntegration.BuildActivities;assembly=Microsoft.TeamFoundation.TestImpact.BuildIntegration" xmlns:mtvc="clr-namespace:Microsoft.TeamFoundation.VersionControl.Client;assembly=Microsoft.TeamFoundation.VersionControl.Client" xmlns:mtvco="clr-namespace:Microsoft.TeamFoundation.VersionControl.Common;assembly=Microsoft.TeamFoundation.VersionControl.Common" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:sad="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:sad1="clr-namespace:System.Activities.Debugger;assembly=System.Activities" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:sl="clr-namespace:System.Linq;assembly=System.Core" xmlns:this="clr-namespace:TfsBuild;" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"><x:Members><x:Property Name="ProjectsToBuild" Type="InArgument(s:String[])" /><x:Property Name="ConfigurationsToBuild" Type="InArgument(s:String[])" /><x:Property Name="AutomatedTests" Type="InArgument(mtbco:BuildParameter[])" /><x:Property Name="AdvancedTestSettings" Type="InArgument(mtbco:BuildParameter)" /><x:Property Name="BuildNumberFormat" Type="InArgument(x:String)" /><x:Property Name="GetVersion" Type="InArgument(x:String)" /><x:Property Name="CleanWorkspace" Type="InArgument(x:Boolean)" /><x:Property Name="CreateLabel" Type="InArgument(x:Boolean)" /><x:Property Name="AdvancedBuildSettings" Type="InArgument(mtbco:BuildParameter)" /><x:Property Name="AgentSettings" Type="InArgument(mtbco:BuildParameter)" /><x:Property Name="CleanBuild" Type="InArgument(x:Boolean)" /><x:Property Name="OutputLocation" Type="InArgument(x:String)" /><x:Property Name="SymbolStorePath" Type="InArgument(x:String)" /><x:Property Name="CreateWorkItem" Type="InArgument(x:Boolean)" /><x:Property Name="UpdateAssociatedWorkItems" Type="InArgument(x:Boolean)" /><x:Property Name="Metadata" Type="mtbw:ProcessParameterMetadataCollection" /><x:Property Name="SupportedReasons" Type="mtbc:BuildReason" /><x:Property Name="BuildProcessVersion" Type="x:String" /></x:Members><this:Process.ProjectsToBuild><InArgument x:TypeArguments="s:String[]" /></this:Process.ProjectsToBuild><this:Process.ConfigurationsToBuild><InArgument x:TypeArguments="s:String[]" /></this:Process.ConfigurationsToBuild><this:Process.BuildNumberFormat>["$(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r)"]</this:Process.BuildNumberFormat><this:Process.GetVersion><InArgument x:TypeArguments="x:String" /></this:Process.GetVersion><this:Process.AutomatedTests>
  [{ New Microsoft.TeamFoundation.Build.Common.BuildParameter("
  {""AssemblyFileSpec"": ""**\\*test*.dll;**\\*test*.appx"",""RunSettingsFileName"": null,""TestCaseFilter"": """",""RunSettingsForTestRun"":
  {""ServerRunSettingsFile"": """",""TypeRunSettings"": ""Default"",""HasRunSettingsFile"": false
  },""HasRunSettingsFile"": false,""HasTestCaseFilter"": false,""ExecutionPlatform"": ""X86"",""FailBuildOnFailure"": false,""RunName"": """"
  }")
  }]</this:Process.AutomatedTests><this:Process.CleanWorkspace>[True]</this:Process.CleanWorkspace><this:Process.CreateLabel>[True]</this:Process.CreateLabel><this:Process.CleanBuild>[True]</this:Process.CleanBuild><this:Process.OutputLocation>["SingleFolder"]</this:Process.OutputLocation><this:Process.AgentSettings>
  [New Microsoft.TeamFoundation.Build.Common.BuildParameter("
  {""MaxExecutionTime"": ""00:00:00"",""MaxWaitTime"": ""04:00:00"",""Name"": ""*"",""Tags"": [],""TagComparison"": ""MatchExactly""
  }")]</this:Process.AgentSettings><this:Process.AdvancedBuildSettings>
  [New Microsoft.TeamFoundation.Build.Common.BuildParameter("
  {""MSBuildArguments"": """",""MSBuildPlatform"": ""Auto"",""PreActionScriptPath"": """",""PreActionScriptArguments"": """",""PostActionScriptPath"": """",""PostActionScriptArguments"": """",""RunCodeAnalysis"": ""AsConfigured""
  }")]</this:Process.AdvancedBuildSettings><this:Process.AdvancedTestSettings>
  [New Microsoft.TeamFoundation.Build.Common.BuildParameter("
  {""AnalyzeTestImpact"": true,""DisableTests"": false,""PreActionScriptPath"": """",""PreActionScriptArguments"": """",""PostActionScriptPath"": """",""PostActionScriptArguments"": """"
  }")]</this:Process.AdvancedTestSettings><this:Process.SymbolStorePath><InArgument x:TypeArguments="x:String" /></this:Process.SymbolStorePath><this:Process.CreateWorkItem>[True]</this:Process.CreateWorkItem><this:Process.UpdateAssociatedWorkItems>[True]</this:Process.UpdateAssociatedWorkItems><this:Process.Metadata><mtbw:ProcessParameterMetadataCollection><mtbw:ProcessParameterMetadata ParameterName="CleanWorkspace" BrowsableWhen="Always" Category="#100 TF Version Control" DisplayName="1. Clean workspace" Description="Set this to true to start with a clean workspace on each build." /><mtbw:ProcessParameterMetadata ParameterName="CreateLabel" BrowsableWhen="Always" Category="#100 TF Version Control" DisplayName="3. Label Sources" Description="Set this to true to create a version control label during the build. Labels are never created for private builds." /><mtbw:ProcessParameterMetadata ParameterName="GetVersion" BrowsableWhen="Always" Category="#100 TF Version Control" DisplayName="2. Get version" Description="Specify the version of files to get from source control.  If set, this value overrides the IBuildDetail.SourceGetVersion property.  The value provided should be a valid source control versionspec like C12345." /><mtbw:ProcessParameterMetadata ParameterName="ProjectsToBuild" BrowsableWhen="EditingDefinition" Category="#200 Build" DisplayName="1. Projects" Description="Server paths to the solution/project files you want to build." Required="True" Editor="Microsoft.TeamFoundation.Build.Controls.BuildProjectListEditor, Microsoft.TeamFoundation.Build.Controls" /><mtbw:ProcessParameterMetadata ParameterName="ConfigurationsToBuild" BrowsableWhen="EditingDefinition" Category="#200 Build" DisplayName="2. Configurations" Description="Specify the configurations you want to build (i.e. Debug|x86)." Editor="Microsoft.TeamFoundation.Build.Controls.PlatformConfigurationListEditor, Microsoft.TeamFoundation.Build.Controls" /><mtbw:ProcessParameterMetadata ParameterName="CleanBuild" BrowsableWhen="Always" Category="#200 Build" DisplayName="3. Clean build" Description="Set this to true to perform a clean build." /><mtbw:ProcessParameterMetadata ParameterName="OutputLocation" BrowsableWhen="EditingDefinition" Category="#200 Build" DisplayName="4. Output location" Description="Specify the type of location that outputs should be created in: SingleFolder, PerProject, AsConfigured." Editor="@DropDownList=SingleFolder,PerProject,AsConfigured" /><mtbw:ProcessParameterMetadata ParameterName="AdvancedBuildSettings" BrowsableWhen="Always" Category="#200 Build" DisplayName="5. Advanced" Description="" ValueFormatString=" " /><mtbw:ProcessParameterMetadata ParameterName="AdvancedBuildSettings.MSBuildArguments" BrowsableWhen="Always" DisplayName="MSBuild arguments" Description="Specify additional MSBuild arguments." /><mtbw:ProcessParameterMetadata ParameterName="AdvancedBuildSettings.MSBuildPlatform" BrowsableWhen="EditingDefinition" DisplayName="MSBuild platform" Description="Specify the MSBuild platform to use. Defaults to the OS." Editor="@DropDownList=Auto,X86" /><mtbw:ProcessParameterMetadata ParameterName="AdvancedBuildSettings.PreActionScriptPath" BrowsableWhen="EditingDefinition" DisplayName="Pre-build script path" Description="Specify the path to a custom script that runs before the MSBuild activity starts." ValueFormatString="" Editor="Microsoft.TeamFoundation.Build.Controls.ServerFileBrowserEditor, Microsoft.TeamFoundation.Build.Controls" /><mtbw:ProcessParameterMetadata ParameterName="AdvancedBuildSettings.PreActionScriptArguments" BrowsableWhen="EditingDefinition" DisplayName="Pre-build script arguments" Description="Specify the command line arguments to pass to the script that runs before the MSBuild activity starts." ValueFormatString="" /><mtbw:ProcessParameterMetadata ParameterName="AdvancedBuildSettings.PostActionScriptPath" BrowsableWhen="EditingDefinition" DisplayName="Post-build script path" Description="Specify the path to a custom script that runs after the MSBuild activity successfully completes." ValueFormatString="" Editor="Microsoft.TeamFoundation.Build.Controls.ServerFileBrowserEditor, Microsoft.TeamFoundation.Build.Controls" /><mtbw:ProcessParameterMetadata ParameterName="AdvancedBuildSettings.PostActionScriptArguments" BrowsableWhen="EditingDefinition" DisplayName="Post-build script arguments" Description="Specify the command line arguments to pass to the script that runs after the MSBuild activity successfully completes." ValueFormatString="" /><mtbw:ProcessParameterMetadata ParameterName="AdvancedBuildSettings.RunCodeAnalysis" BrowsableWhen="EditingDefinition" DisplayName="Perform code analysis" Description="Specify AsConfigured to run code analysis according to project settings; Never to never run code analysis; Always to always run code analysis." Editor="@DropDownList=Never,AsConfigured,Always" /><mtbw:ProcessParameterMetadata ParameterName="AutomatedTests" BrowsableWhen="EditingDefinition" Category="#250 Test" DisplayName="1. Automated tests" Description="Specify the test assemblies or test metadata files on which to run tests.  You can skip running these tests by setting the Disable Tests setting to True." ValueFormatString="{}{Count} set(s) of tests specified." Editor="Microsoft.TeamFoundation.Build.Controls.AgileTestSpecListEditor, Microsoft.TeamFoundation.Build.Controls" /><mtbw:ProcessParameterMetadata ParameterName="AutomatedTests.[Item]" BrowsableWhen="Always" DisplayName="Test source" ValueFormatString="{}{RunName} - Run tests in test sources matching {AssemblyFileSpec}, Target platform: '{ExecutionPlatform}'" Editor="Microsoft.TeamFoundation.Build.Controls.AgileTestSpecEditor, Microsoft.TeamFoundation.Build.Controls" /><mtbw:ProcessParameterMetadata ParameterName="AutomatedTests.AssemblyFileSpec" BrowsableWhen="Always" DisplayName="Test sources spec" Description="Specify the search pattern for locating test sources - e.g., **\\*test*.dll." /><mtbw:ProcessParameterMetadata ParameterName="AutomatedTests.HasRunSettingsFile" BrowsableWhen="Never" /><mtbw:ProcessParameterMetadata ParameterName="AutomatedTests.HasTestCaseFilter" BrowsableWhen="Never" /><mtbw:ProcessParameterMetadata ParameterName="AutomatedTests.RunSettingsFileName" BrowsableWhen="Never" /><mtbw:ProcessParameterMetadata ParameterName="AutomatedTests.TestCaseFilter" BrowsableWhen="Always" DisplayName="Test case filter" Description="Use the specified filter to select tests to run based on filter criteria.  You can use the format &lt;property&gt;Operator&lt;value&gt; to construct your filter where Operator is one of =, != or ~ (Operator ~ has 'contains' semantics and is applicable for string properties like DisplayName).  You can also use the logical operator |, to construct your filter and parenthesis () for grouping.  For example, (FullyQualifiedName~Nightly|Name=MyTestMethod)" /><mtbw:ProcessParameterMetadata ParameterName="AutomatedTests.RunSettingsForTestRun" BrowsableWhen="Always" DisplayName="Run settings" Description="Specify run settings to be used for running the tests." /><mtbw:ProcessParameterMetadata ParameterName="AutomatedTests.RunSettingsForTestRun.ServerRunSettingsFile" BrowsableWhen="Always" DisplayName="Run settings file" Description="Specify the Run Settings file to use with the test sources." Editor="Microsoft.TeamFoundation.Build.Controls.RunSettingsFileBrowserEditor, Microsoft.TeamFoundation.Build.Controls" /><mtbw:ProcessParameterMetadata ParameterName="AutomatedTests.RunSettingsForTestRun.TypeRunSettings" BrowsableWhen="Always" DisplayName="Type of run settings" Description="Select the type of run settings to use with test sources.  Values are Default, CodeCoverageEnabled, CodeCoverageEnabledForAspNetApps, UserSpecified." Editor="@DropDownList=Default,CodeCoverageEnabled,CodeCoverageEnabledForAspNetApps,UserSpecified" /><mtbw:ProcessParameterMetadata ParameterName="AutomatedTests.RunSettingsForTestRun.HasRunSettingsFile" BrowsableWhen="Never" /><mtbw:ProcessParameterMetadata ParameterName="AutomatedTests.ExecutionPlatform" BrowsableWhen="Always" DisplayName="Target platform for test execution" Description="Specify target platform for test execution.  X86 or X64" Editor="@DropDownList=X86,X64" /><mtbw:ProcessParameterMetadata ParameterName="AutomatedTests.FailBuildOnFailure" BrowsableWhen="Always" DisplayName="Fail build on test failure" Description="Set this to true to fail any builds where these tests do not pass.  The default is to mark the build as partially succeeded if the tests fail." /><mtbw:ProcessParameterMetadata ParameterName="AutomatedTests.RunName" BrowsableWhen="Always" DisplayName="Test run name" Description="Specify the name the test run is published as." /><mtbw:ProcessParameterMetadata ParameterName="AdvancedTestSettings" BrowsableWhen="Always" Category="#250 Test" DisplayName="2. Advanced" Description="" ValueFormatString=" " /><mtbw:ProcessParameterMetadata ParameterName="AdvancedTestSettings.AnalyzeTestImpact" BrowsableWhen="EditingDefinition" Category="#250 Test" DisplayName="Analyze test impact" Description="Set this to true to perform test impact analysis." /><mtbw:ProcessParameterMetadata ParameterName="AdvancedTestSettings.DisableTests" BrowsableWhen="Always" Category="#250 Test" DisplayName="Disable tests" Description="Specify True to skip running all tests with the build; False to run tests as defined by the Automated Tests setting." /><mtbw:ProcessParameterMetadata ParameterName="AdvancedTestSettings.PreActionScriptPath" BrowsableWhen="EditingDefinition" DisplayName="Pre-test script path" Description="Specify the path to a custom script that runs before the activity starts." ValueFormatString="" Editor="Microsoft.TeamFoundation.Build.Controls.ServerFileBrowserEditor, Microsoft.TeamFoundation.Build.Controls" /><mtbw:ProcessParameterMetadata ParameterName="AdvancedTestSettings.PreActionScriptArguments" BrowsableWhen="EditingDefinition" DisplayName="Pre-test script arguments" Description="Specify the command line arguments to pass to the script that runs before the activity starts." ValueFormatString="" /><mtbw:ProcessParameterMetadata ParameterName="AdvancedTestSettings.PostActionScriptPath" BrowsableWhen="EditingDefinition" DisplayName="Post-test script path" Description="Specify the path to a custom script that runs after the RunAgileTestRunner activity successfully completes." ValueFormatString="" Editor="Microsoft.TeamFoundation.Build.Controls.ServerFileBrowserEditor, Microsoft.TeamFoundation.Build.Controls" /><mtbw:ProcessParameterMetadata ParameterName="AdvancedTestSettings.PostActionScriptArguments" BrowsableWhen="EditingDefinition" DisplayName="Post-test script arguments" Description="Specify the command line arguments to pass to the script that runs after the RunAgileTestRunner activity successfully completes." ValueFormatString="" /><mtbw:ProcessParameterMetadata ParameterName="SymbolStorePath" BrowsableWhen="EditingDefinition" Category="#300 Publish Symbols" DisplayName="Path to publish symbols" Description="Specify the path to the symbol store share.  When this value is set, source indexing is a part of the build.  Source indexing is never performed for private builds." /><mtbw:ProcessParameterMetadata ParameterName="BuildNumberFormat" BrowsableWhen="EditingDefinition" Category="#400 Advanced" DisplayName="Build number format" Description="Specify the format for the number of this build." Editor="Microsoft.TeamFoundation.Build.Controls.BuildNumberFormatEditor, Microsoft.TeamFoundation.Build.Controls" /><mtbw:ProcessParameterMetadata ParameterName="AgentSettings" BrowsableWhen="EditingDefinition" Category="#400 Advanced" DisplayName="Agent settings" Description="Specify the Name and/or Tags (and other properties) that will be used to select an appropriate Agent for the build." ValueFormatString="Use agent where Name={Name} and Tags={Tags} ({TagComparison})" /><mtbw:ProcessParameterMetadata ParameterName="AgentSettings.MaxExecutionTime" BrowsableWhen="Always" DisplayName="Maximum agent execution time" Description="Specify the maximum amount of time that you want to allow for this part of the work flow to run. The default value is zero which means there is no timeout." Editor="@Type=TimeSpan" /><mtbw:ProcessParameterMetadata ParameterName="AgentSettings.MaxWaitTime" BrowsableWhen="Always" DisplayName="Maximum agent reservation wait time" Description="Specify the maximum amount of time that you want to allow waiting for an agent. The default value is zero which means there is no timeout." Editor="@Type=TimeSpan" /><mtbw:ProcessParameterMetadata ParameterName="AgentSettings.Name" BrowsableWhen="Always" DisplayName="Name filter" Description="Specify the agent to use for this remote execution by display name (this is not the computer name). Supported wildcard characters include '*' and '?'." Editor="Microsoft.TeamFoundation.Build.Controls.BuildAgentSelectionEditor, Microsoft.TeamFoundation.Build.Controls" /><mtbw:ProcessParameterMetadata ParameterName="AgentSettings.TagComparison" BrowsableWhen="Always" DisplayName="Tag comparison operator" Description="Specify the comparison method to use for tags when selecting a build agent. MatchExactly, MatchAtLeast" Editor="@DropDownList=MatchExactly,MatchAtLeast" /><mtbw:ProcessParameterMetadata ParameterName="AgentSettings.Tags" BrowsableWhen="Always" DisplayName="Tags filter" Description="Specify the tags used to select the build agent." Editor="Microsoft.TeamFoundation.Build.Controls.TagsEditor, Microsoft.TeamFoundation.Build.Controls" /><mtbw:ProcessParameterMetadata ParameterName="CreateWorkItem" BrowsableWhen="Always" Category="#400 Advanced" DisplayName="Create work item on failure" Description="Set this to true to create a work item when the build fails." /><mtbw:ProcessParameterMetadata ParameterName="UpdateAssociatedWorkItems" BrowsableWhen="Always" Category="#400 Advanced" DisplayName="Update work items with build number" Description="Set this to true to update the associated work items by setting the Fixed In Build field to the build number of this build." /></mtbw:ProcessParameterMetadataCollection></this:Process.Metadata><this:Process.SupportedReasons>All</this:Process.SupportedReasons><this:Process.BuildProcessVersion>12.0</this:Process.BuildProcessVersion><mva:VisualBasic.Settings>Assembly references and imported namespaces serialized as XML namespaces</mva:VisualBasic.Settings><Sequence DisplayName="Overall build process"><mtbac:SetBuildNumber DisplayName="Update build number" BuildNumberFormat="[BuildNumberFormat]" /><mtbwa:AgentScope DisplayName="Run on agent" MaxExecutionTime="[AgentSettings.GetValue(Of TimeSpan)(&quot;MaxExecutionTime&quot;, new System.TimeSpan(0,0,0))]" MaxWaitTime="[AgentSettings.GetValue(Of TimeSpan)(&quot;MaxWaitTime&quot;, new System.TimeSpan(4,0,0))]" ReservationSpec="[AgentSettings.CreateAgentReservationSpec()]"><mtbac:InitializeEnvironment DisplayName="Initialize environment" /><mtbat:TfGetSources DisplayName="Get sources from Team Foundation Version Control" CleanWorkspace="[CleanWorkspace]" CreateLabel="[CreateLabel]" VersionOverride="[GetVersion]" /><mtba:AssociateChanges DisplayName="Associate the changesets that occurred since the last good build" UpdateWorkItems="[UpdateAssociatedWorkItems]" /><TryCatch DisplayName="Try" mtbwt:BuildTrackingParticipant.Importance="Low"><TryCatch.Try><Sequence DisplayName="Compile, Test and Publish"><mtba:RunScript DisplayName="Run optional script before MSBuild" FilePath="[AdvancedBuildSettings.GetValue(Of String)(&quot;PreActionScriptPath&quot;, String.Empty)]" Arguments="[AdvancedBuildSettings.GetValue(Of String)(&quot;PreActionScriptArguments&quot;, String.Empty)]" /><mtba:RunMSBuild DisplayName="Run MSBuild" OutputLocation="[OutputLocation]" CleanBuild="[CleanBuild]" CommandLineArguments="[String.Format(&quot;/p:SkipInvalidConfigurations=true {0}&quot;, AdvancedBuildSettings.GetValue(Of String)(&quot;MSBuildArguments&quot;, String.Empty))]" ConfigurationsToBuild="[ConfigurationsToBuild]" ProjectsToBuild="[ProjectsToBuild]" ToolPlatform="[AdvancedBuildSettings.GetValue(Of String)(&quot;MSBuildPlatform&quot;, &quot;Auto&quot;)]" RunCodeAnalysis="[AdvancedBuildSettings.GetValue(Of String)(&quot;RunCodeAnalysis&quot;, &quot;AsConfigured&quot;)]" /><mtba:RunScript DisplayName="Run optional script after MSBuild" FilePath="[AdvancedBuildSettings.GetValue(Of String)(&quot;PostActionScriptPath&quot;, String.Empty)]" Arguments="[AdvancedBuildSettings.GetValue(Of String)(&quot;PostActionScriptArguments&quot;, String.Empty)]" /><mtba:RunScript DisplayName="Run optional script before Test Runner" FilePath="[AdvancedTestSettings.GetValue(Of String)(&quot;PreActionScriptPath&quot;, String.Empty)]" Arguments="[AdvancedTestSettings.GetValue(Of String)(&quot;PreActionScriptArguments&quot;, String.Empty)]" /><mtba:RunAgileTestRunner DisplayName="Run VS Test Runner" Enabled="[Not AdvancedTestSettings.GetValue(Of Boolean)(&quot;DisableTests&quot;, false)]" TestSpecs="[AutomatedTests]" ConfigurationsToTest="[ConfigurationsToBuild]" /><mtba:RunScript DisplayName="Run optional script after Test Runner" FilePath="[AdvancedTestSettings.GetValue(Of String)(&quot;PostActionScriptPath&quot;, String.Empty)]" Arguments="[AdvancedTestSettings.GetValue(Of String)(&quot;PostActionScriptArguments&quot;, String.Empty)]" /><mtba:RunTestImpact DisplayName="Get Impacted Tests" Enabled="[AdvancedTestSettings.GetValue(Of Boolean)(&quot;AnalyzeTestImpact&quot;, true)]" /><mtba:RunPublishSymbols DisplayName="Publish Symbols" SymbolStorePath="[SymbolStorePath]" /></Sequence></TryCatch.Try><TryCatch.Catches><Catch x:TypeArguments="s:Exception"><ActivityAction x:TypeArguments="s:Exception"><ActivityAction.Argument><DelegateInArgument x:TypeArguments="s:Exception" Name="ex" /></ActivityAction.Argument><Sequence DisplayName="Handle Exception"><mtba:CreateBuildFailureBug DisplayName="Create a bug for the build failure" Enabled="[CreateWorkItem]" /><Rethrow DisplayName="Rethrow the exception so the build will stop" /></Sequence></ActivityAction></Catch></TryCatch.Catches><TryCatch.Finally><Sequence DisplayName="Perform Final Actions On Agent"><mtbac:DropBinaries DisplayName="Copy binaries to drop" /><mtbac:ResetEnvironment DisplayName="Reset the Environment" /></Sequence></TryCatch.Finally></TryCatch></mtbwa:AgentScope><mtbwa:InvokeForReason DisplayName="Check In Gated Changes for CheckInShelveset Builds" Reason="CheckInShelveset"><mtbwa:CheckInGatedChanges DisplayName="Check In Gated Changes" UpdateWorkItems="[UpdateAssociatedWorkItems]" /></mtbwa:InvokeForReason></Sequence></Activity>

Any help as to what edit needs to be made to point to VS 2017's MSBuild would be AWESOME!

MSBuild path location differences for VS2017

$
0
0

Hi All,

I have faced an issue "Task could not not found the "Al.exe" file" when executing the projects with resource files for localization through command line in msbuild. 

The issue exists in machine installed with VS2017 RC alone and the msbuild location path we have provided for command line is below,

ProcessStartInfo psi = new ProcessStartInfo();

psi.FileName = "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Msbuild.exe";

psi.Arguments = "D:\Samples\Localization\cs\LocalizationDemo_2010.csproj" /p:Configuration=Release /nologo /noconlog /fileLogger /fileloggerparameters:logfile="D:\Samples\Localization\cs\build.log";

Process p = Process.Start(psi);


But when i change the msbuild location to msbuild located under VS2017, it works fine.

ProcessStartInfo psi = new ProcessStartInfo();

psi.FileName = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe";

psi.Arguments = "D:\Samples\Localization\cs\LocalizationDemo_2010.csproj" /p:Configuration=Release /nologo /noconlog /fileLogger /fileloggerparameters:logfile="D:\Samples\Localization\cs\build.log";

Process p = Process.Start(psi);

May i know the difference of execution with running projects with resource files in msbuild,, since the difference in locations results in issue though VS2010, VS2012, VS2013, VS2015 executes with the first provided msbuild location under framework location.

Please confirm the difference in common and VS2017 msbuild locations.

Regards,


Amal Raj U

warning MSB3277: Found conflicts between different versions of "Microsoft.CSharp" that could not be resolved.

$
0
0

Visual Studio 2017.

After installation and following the walkthrough sof Learn app-building basics with Xamarin.Forms in Visual Studio.

Build fails with message:
Found conflicts between different versions of "Microsoft.CSharp" that could not be resolved.
It happens after step 8 of write shared data service. I have tried to install all the available version of Microsoft.CShap, but cannot resolved the error. The results are:
version 4.0.0 The package may not be fully compatible with the project.
Other version: warning MSB3277: Found conflicts between different versions of "Microsoft.CSharp" that could not be resolved.
I should appreciate your help to find out the way to handle it.


Registry Entry for VS2017 for MSBUILDPATH

$
0
0

Hi,

With VS2015 installed under this registry path

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0

You will see the definition for many of the paths including MSBuildPath.  

I installed VS2017 and installed VS2017 SDK too but still I dont see an entry in the registry for 15.0. The same above picture does not change. Expecting 15.0 might be wrong it might have made some entry elsewhere. So my question is where is the registry location for VS2017 where MSBuildPath and such are defined. Just to give some more context in my csproj file I have a import line:

<Import Project="$(MyTargetsPath)\My.Abcd.targets" />

I want to define the path MyTargetsPath is pointing. When I do that for VS2015 it works fine for VS2017 the path $(MyTargetsPath) does not get resolved I end up with C:\My.Abcd.targets which is wrong. Please advice



Forcing build to fail from post-build event

$
0
0
I runs custom commands from the C# post-build event. On failure, these commands return a non-zero value, or throw an unhandled exception. However these do not cause the build to fail. Anyone knows a good way to force the build to fail? Because I run a lot of custom commands, it's rather cumbersome to having to check the exit code on each of them and then call "exit 1" from the post event. Thanks.

I want TFS automated build fetch the source code to the server one time then build the projects of it separately by build definition for each

$
0
0

Hi i made TFS automated builds with source code size 5.5 GB need more than 30 minutes to fetch the source code, now the builds work fine but each build definition fetch the source code again and put it in separated Folder, i have 6 projects want to build so it will reserve 33 GB for source codes only.

how can i make the build definitions use the same source code which fetched before? or any way that may help me?

i tried to make shared work folder for all build agents but it still put them in separated folders with name number like 1,2,3,4,...

thank you

Debugging msbuild project

$
0
0

   Is it possible to debug a msbuild project in Visual Studio 2017? Sort of what is described here https://blogs.msdn.microsoft.com/visualstudio/2010/07/06/debugging-msbuild-script-with-visual-studio/ but this approach does not work in VS2017.



Alex

I want to make TFS automated build fetch the source code to the server only one time then build the projects of it separately by build definition for each

$
0
0

Hi i made TFS automated builds with source code size 5.5 GB need more than 30 minutes to fetch the source code, now the builds work fine but each build definition fetch the source code again and put it in separated Folder, i have 6 projects want to build so it will reserve 33 GB for source codes only.

how can i make the build definitions use the same source code which fetched before? or any way that may help me?

i tried to make shared work folder for all build agents but it still put them in separated folders with name number like 1,2,3,4,...

thank you

MSB3073 VCEnd exited with code 1

$
0
0

Please help , This project build successfully in Win7 with VS 2017. But it build fail in Win10 with VS2017.

Here is output,

1>------ Build started: Project: CLI, Configuration: Debug x64 ------
1>Create version header from git --version dirty
1>File C:\Users\PaulTsai\Desktop\sedutil-master\windows\GitVersion.ps1 cannot be loaded because running scripts is
1>disabled on this system. For more information, see about_Execution_Policies at
1>https:/go.microsoft.com/fwlink/?LinkID=135170.
1>    + CategoryInfo          : SecurityError: (:) [], ParentContainsErrorRecordException
1>    + FullyQualifiedErrorId : UnauthorizedAccess
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(123,5): error MSB3073: The command "powershell -NonInteractive -NoProfile -File ..\GitVersion.ps1 ..\Version.h
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(123,5): error MSB3073: :VCEnd" exited with code 1.
1>Done building project "CLI.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Viewing all 2763 articles
Browse latest View live


Latest Images

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