msbuild

Encoding/locale of gitlab runner machine

为君一笑 提交于 2020-01-05 05:31:50
问题 I have setup GitLab runner on winserver 2016. Everything works fine, except output of runner on gitlab. Locale of winserver is RU. I'm trying to build projects with MSBUILD, which outputs russian characters: Checking out e5ec41d1 as release-2... Skipping Git submodules setup $ echo "начинается билд %PROJECT_NAME%" "начинается билд PEPSolution" $ echo "Релизная сборка... " "Релизная сборка... " $ "C:\Program Files ^(x86^)\MSBuild\14.0\Bin\amd64\MSBuild.exe" /consoleloggerparameters:ErrorsOnly

MSBuild.exe Copy task not working properly unless a version of the file already appears in target

末鹿安然 提交于 2020-01-05 04:24:14
问题 I'm using MSBuild.exe v4.00. I've got a build target in my project file that copies a file named Parameters.MyEnvironment.xml to Parameters.xml. "MyEnvironment" can vary based on when/where MSBuild.exe is called. This runs, then the Parameters.xml is used by other processes in the MSDeployPublish target. Finally, I delete the file Parameters.xml because it's just a copy of one of my environment-specific files. When running as described above, the MSDeployPublish target behaves as though

TFS Build 2010 - Custom Binary Location and SharePoint WSP

偶尔善良 提交于 2020-01-05 02:56:07
问题 I'm building a solution using TFS Build 2010. This solution has multiple projects and one of the projects is SharePoint. I want TFS Build to put binaries for each project in its own folder (i.e. customized binary folder). So I followed the instructions from MSDN and it works. Now the challenge is that I'm not able to generate a WSP file with the customized binary folder (note that I'm able to generate WSP without the customized binary folder). I'm getting this error: C:\\..\..\Microsoft

.NET CORE ALINK : warning AL1073: Referenced assembly 'mscorlib.dll' targets a different processor

你说的曾经没有我的故事 提交于 2020-01-04 23:25:50
问题 I am using VS2019 and .NET CORE 2.2 I am getting the warning AL1073 ALINK warning AL1073: Referenced assembly 'mscorlib.dll' targets a different processor I know this is close to the question as: ALINK : warning AL1073: Referenced assembly 'mscorlib.dll' targets a different processor BUT: I am on .NET CORE 2.2 not on 4.x The solutions proposed there do not work on .NET core in particular, attempting to add: <PropertyGroup> <TargetFrameworkSDKToolsDirectory Condition=" '$(PlatformTarget)' ==

.NET CORE ALINK : warning AL1073: Referenced assembly 'mscorlib.dll' targets a different processor

你离开我真会死。 提交于 2020-01-04 23:24:24
问题 I am using VS2019 and .NET CORE 2.2 I am getting the warning AL1073 ALINK warning AL1073: Referenced assembly 'mscorlib.dll' targets a different processor I know this is close to the question as: ALINK : warning AL1073: Referenced assembly 'mscorlib.dll' targets a different processor BUT: I am on .NET CORE 2.2 not on 4.x The solutions proposed there do not work on .NET core in particular, attempting to add: <PropertyGroup> <TargetFrameworkSDKToolsDirectory Condition=" '$(PlatformTarget)' ==

Email Errors in MSBuild - ReadLinesFromFile “is being used by another process”

笑着哭i 提交于 2020-01-04 15:20:08
问题 I'm trying to implement the answer from here: How to access error details in MSBuild > msbuild MyProject.proj /fl /flp:v=detailed;logfile=mylog.txt <Target Name="ErrorEmail"> <ReadLinesFromFile File="mylog.txt" Lines="_ErrorLines" /> <Mail SmtpServer="mysrv" From="me@mysrv" To="error@mysrv" Subject="An error occured" Body="Error details: @(_ErrorLines, '%0D%0A')" /> </Target> Looks elegant, but I'm getting this error: c:\AccuRev\Build_2012_01_02\MyApp\ErrorHandlers.targets(24,9): error

Email Errors in MSBuild - ReadLinesFromFile “is being used by another process”

社会主义新天地 提交于 2020-01-04 15:19:49
问题 I'm trying to implement the answer from here: How to access error details in MSBuild > msbuild MyProject.proj /fl /flp:v=detailed;logfile=mylog.txt <Target Name="ErrorEmail"> <ReadLinesFromFile File="mylog.txt" Lines="_ErrorLines" /> <Mail SmtpServer="mysrv" From="me@mysrv" To="error@mysrv" Subject="An error occured" Body="Error details: @(_ErrorLines, '%0D%0A')" /> </Target> Looks elegant, but I'm getting this error: c:\AccuRev\Build_2012_01_02\MyApp\ErrorHandlers.targets(24,9): error

Type or namespace 'MSBuild' does not exist in namespace 'Microsoft.CodeAnalysis' despite being able to navigate to definition

佐手、 提交于 2020-01-04 14:20:33
问题 I'm trying out Roslyn for the first time and I'm writing a small piece of code to read through a project, classes and class members. I'm using the MSBuildWorkspace class to create the Roslyn workspace ( MSBuildWorkspace.Create() ). Below is a small part of the code I've written using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.MSBuild; //Some problem in this line? Read on. ... ... var workspace = MSBuildWorkspace.Create(); Solution solutionToAnalyze = workspace.OpenSolutionAsync

MSBuild - can I compile all solutions in child directories?

时间秒杀一切 提交于 2020-01-04 13:46:35
问题 Is there a way in MSBuild to compile all solutions in folders, and sub-folders, and sub... under a specified parent? We have a bunch of sample programs we ship with our library. I want to add to the build process that we know they all compile. 回答1: You can create own targets for restore and build operations. For example: <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" InitialTargets="EntryRestore" DefaultTargets="EntryMSBuild"> <ItemGroup>

Can a MSBuild custom Logger be specified within a Project file?

痴心易碎 提交于 2020-01-04 12:45:01
问题 There is a command line argument '/logger' for msbuild that allows you to specify a custom implemented logger when building. (https://msdn.microsoft.com/en-us/library/ms171471.aspx) msbuild.exe /? ... /logger: Use this logger to log events from MSBuild. To specify multiple loggers, specify each logger separately. The syntax is: [,][;] The syntax is: [.] The syntax is: {[,] | } The are optional, and are passed to the logger exactly as you typed them. (Short form: /l) Examples: /logger