msbuild

How can I use msbuild without project.assets.json or nuget restore?

两盒软妹~` 提交于 2021-01-27 06:19:08
问题 I have a .Net Standard project in a solution and I want msbuild to build it on our build server. If I do not run "nuget restore" first, I get the error "project.assets.json' not found. Run a NuGet package restore". I already have all of the necessary NuGet packages in the "packages" folder at the solution level. I would like to indicate somehow that msbuild should just use the files in the local "packages" folder instead of trying to re-download the files. How can I do this? Thank you. 回答1:

Install F# 4.1 SDK on build server

旧巷老猫 提交于 2021-01-27 05:49:43
问题 I have installed Visual Studio 2017 with F# support on my PC and I have MSBuild targets in C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\FSharp and F# 4.1 SDK in C:\Program Files (x86)\Microsoft SDKs\F#\4.1 I have installed Build Tools for Visual Studio 2017 (from https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=15 ) but there is no option to install F# SDK so building F# projects using MSBuild 15 fails.

Assembly not found during TFS Build

╄→尐↘猪︶ㄣ 提交于 2021-01-27 05:23:27
问题 Running into an issue were project compiles locally just fine, but TFS build is reporting that assemblies cannot be found. Log file will show: 2>C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets(1696,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "HtmlAgilityPack". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\Builds\1\MyProj\MyProj-Dev

Webdeploy permission issue

左心房为你撑大大i 提交于 2021-01-27 05:18:36
问题 I have 3 web deploy (visual studio publish project to package) packages for which I use msdeploy command to sync with a server. One of the package was newly added. The other two packages work fine except for the newly added one. I see the following error in the log. I am not sure where to set the permission for this since the permissions for iisApp provider are already set in IIS Manager Delegation settings. I am new to IIS configuration and .net development. Can anyone provide info on why I

Webdeploy permission issue

非 Y 不嫁゛ 提交于 2021-01-27 05:18:16
问题 I have 3 web deploy (visual studio publish project to package) packages for which I use msdeploy command to sync with a server. One of the package was newly added. The other two packages work fine except for the newly added one. I see the following error in the log. I am not sure where to set the permission for this since the permissions for iisApp provider are already set in IIS Manager Delegation settings. I am new to IIS configuration and .net development. Can anyone provide info on why I

MSBUILD error where folder contains more than one solution file

纵然是瞬间 提交于 2021-01-27 05:09:33
问题 I'm trying to set up CCNET and I've run into a problem. My builds are failing and I'm getting this error MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file. In my configuration file ccnet.config my msbuild block is as follows <msbuild> <executable>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable> <workingDirectory>C:\example\directory</workingDirectory> <projectFile>ExampleSolution.sln

MSBUILD error where folder contains more than one solution file

空扰寡人 提交于 2021-01-27 05:09:01
问题 I'm trying to set up CCNET and I've run into a problem. My builds are failing and I'm getting this error MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file. In my configuration file ccnet.config my msbuild block is as follows <msbuild> <executable>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable> <workingDirectory>C:\example\directory</workingDirectory> <projectFile>ExampleSolution.sln

MSBuild - wait for x seconds

戏子无情 提交于 2021-01-26 23:15:43
问题 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:14:39
问题 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:13:12
问题 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=