msbuild

MSBuild - wait for x seconds

天涯浪子 提交于 2021-01-26 23:11:45
问题 I have a MSBuild script that deploys a web app. It stops the current web app by copying a 'app_offline.htm' file to the server. After this it deletes other files then copies new ones to the server. I need to add a delay between the copying of 'app_offline.htm' and the delete. My current script throws errors as the files are still locked when the script tries to delete them. What is the best way to do this in MSBuild? My Stop task looks like this... <Target Name="Stop"> <WriteLinesToFile File=

MSBuild - wait for x seconds

浪尽此生 提交于 2021-01-26 23:11:14
问题 I have a MSBuild script that deploys a web app. It stops the current web app by copying a 'app_offline.htm' file to the server. After this it deletes other files then copies new ones to the server. I need to add a delay between the copying of 'app_offline.htm' and the delete. My current script throws errors as the files are still locked when the script tries to delete them. What is the best way to do this in MSBuild? My Stop task looks like this... <Target Name="Stop"> <WriteLinesToFile File=

MSBuild - wait for x seconds

那年仲夏 提交于 2021-01-26 23:10:23
问题 I have a MSBuild script that deploys a web app. It stops the current web app by copying a 'app_offline.htm' file to the server. After this it deletes other files then copies new ones to the server. I need to add a delay between the copying of 'app_offline.htm' and the delete. My current script throws errors as the files are still locked when the script tries to delete them. What is the best way to do this in MSBuild? My Stop task looks like this... <Target Name="Stop"> <WriteLinesToFile File=

How to diagnose warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved

寵の児 提交于 2021-01-22 05:46:34
问题 I'm getting an annoying MSB3277 warning when I build my project. I increased verbosity to "detailed" and I was able to get the following information from the log: There was a conflict between "Pathoschild.Http.Client, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null" and "Pathoschild.Http.Client, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null". "Pathoschild.Http.Client, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null" was chosen because it was primary and "Pathoschild.Http

gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1

旧街凉风 提交于 2021-01-21 10:27:11
问题 I used the command truffle unbox react to build a dapp. It is just the initial step of my dapp development. However, it sucks. It continually pops up gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1 this error. I've already google this error. Therefore, I set my python default version at 2.7 and install visual studio 2015 and visual studio 2017. Also I've reinstall node-gyp and npm

How to kill VBCSCompiler.exe on Ubuntu agent?

只谈情不闲聊 提交于 2021-01-13 11:02:06
问题 I created an Azure Devops Build pipeline and i am trying to build my ASP.NET MVC and Angular hybrid site project on bitbucket (git). The project first gets checked out, and nuget restores the necessary packages, and then the .NET builds. I used windows 2019 as azure pipeline agent for the build to succeed. however, Its taking about 7 minutes to complete, whilst running the tasks (besides .Net) on a ubuntu agent is much faster! takes around 2 mins instead! Therefore, I'd like to use ubuntu,

Why is the project file not found even though i am using an MSBuild task?

只愿长相守 提交于 2021-01-07 06:31:55
问题 I created an Azure Devops Build pipeline and i am trying to build my ASP.NET MVC and Angular hybrid site project on bitbucket (git). The project first gets checked out, and nuget restores the necessary packages, however, i cannot get the .NET to build! Ive stumbled on this post here that basically advises against using the dotnet build task and recommended just using Visual Studio Build or MSBuild tasks instead. Nether are working for me though! I tried VS2017-win2016 hosted agent, didnt work

Postsharp Build Errors after Update to Visual Studio Version 16.8.2

白昼怎懂夜的黑 提交于 2021-01-05 07:19:05
问题 After updating visual studio to version 16.8.2, my solution which uses Post Sharp no longer builds. I didn't upgrade any projects to use .Net 5. Here are the errors I'm seeing: Severity Code Description Project File Line Suppression State Error CS0006 Metadata file 'C:\Dev\repos\hinge\HingeSolution\HingeApi\bin\Debug\netcoreapp3.1\HingeApi.dll' could not be found HingeApi-tests C:\Dev\repos\hinge\HingeSolution\HingeApi-tests\CSC 1 N/A Error MSB4064 The "RuntimeGraphPath" parameter is not

MSB3644 error when building with .net 5.0

纵饮孤独 提交于 2021-01-05 06:15:57
问题 After installing .net 5.0 dotnet-cli works, but after creating new project dotnet build fails with error error MSB3644: The reference assemblies for framework “.NETFramework,Version=v5.0” were not found . 回答1: Make sure the environment variable MSBuildSdksPath equals <dotnet install path>\sdk\5.0.100-preview.3.20216.6\Sdks 来源: https://stackoverflow.com/questions/61745089/msb3644-error-when-building-with-net-5-0

MSB3644 error when building with .net 5.0

别等时光非礼了梦想. 提交于 2021-01-05 06:11:18
问题 After installing .net 5.0 dotnet-cli works, but after creating new project dotnet build fails with error error MSB3644: The reference assemblies for framework “.NETFramework,Version=v5.0” were not found . 回答1: Make sure the environment variable MSBuildSdksPath equals <dotnet install path>\sdk\5.0.100-preview.3.20216.6\Sdks 来源: https://stackoverflow.com/questions/61745089/msb3644-error-when-building-with-net-5-0