msbuild

Restore NuGet Package in TeamCity Build and Deploy Step

♀尐吖头ヾ 提交于 2020-06-18 17:18:39
问题 My Build and Deploy step in TeamCity is not successfully executed. It is showing "This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props." Below is the step process log: [Step 1/1] WebApplication2.sln.teamcity: Build target: TeamCity_Generated_Build [22:31:54]

Restore NuGet Package in TeamCity Build and Deploy Step

丶灬走出姿态 提交于 2020-06-18 17:17:41
问题 My Build and Deploy step in TeamCity is not successfully executed. It is showing "This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props." Below is the step process log: [Step 1/1] WebApplication2.sln.teamcity: Build target: TeamCity_Generated_Build [22:31:54]

Restore NuGet Package in TeamCity Build and Deploy Step

巧了我就是萌 提交于 2020-06-18 17:17:09
问题 My Build and Deploy step in TeamCity is not successfully executed. It is showing "This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props." Below is the step process log: [Step 1/1] WebApplication2.sln.teamcity: Build target: TeamCity_Generated_Build [22:31:54]

disable web.config generation for asp.net core 3.1 project

馋奶兔 提交于 2020-06-12 08:37:52
问题 The dotnet publish command for my ASP.NET Core 3.1 project creates a web.config file in my publish/ directory. I don't want this file to be generated (or copied to that folder, at least) - it is never to be used with IIS at all. When I took a look at the command output with verbosity increased, I found the following text: Target "_TransformWebConfig" in file "C:\Program Files\dotnet\sdk\3.1.200\Sdks\Microsoft.NET.Sdk.Publish\targets\TransformTargets\Microsoft.NET.Sdk.Publish.TransformFiles

disable web.config generation for asp.net core 3.1 project

放肆的年华 提交于 2020-06-12 08:32:16
问题 The dotnet publish command for my ASP.NET Core 3.1 project creates a web.config file in my publish/ directory. I don't want this file to be generated (or copied to that folder, at least) - it is never to be used with IIS at all. When I took a look at the command output with verbosity increased, I found the following text: Target "_TransformWebConfig" in file "C:\Program Files\dotnet\sdk\3.1.200\Sdks\Microsoft.NET.Sdk.Publish\targets\TransformTargets\Microsoft.NET.Sdk.Publish.TransformFiles

bash: msbuild: command not found

对着背影说爱祢 提交于 2020-06-12 07:25:29
问题 Having a problem with adding msbuild to git bash for Win10 already added msbuild to system vars and to path too CMD msbuild calls fine already tried this solution 回答1: If you want to refer to an environment variable you need to prefix it with $ , like $msbuild . I'm not sure that is the best idea though, nor modifying the system path: what if you have different versions of msbuild? Anyway, your real problem is that the command isn't msbuild , it is MSBuild.exe . And a convenient way of adding

How to fully clean bin and obj folders within Visual Studio?

扶醉桌前 提交于 2020-06-07 07:42:46
问题 If you right click on a folder, you will see a "Clean" menu item. I assumed this would clean (remove) the obj and bin directory. However, as far as I can see, it does nothing. Is there another way? (please don't tell me to go to Windows Explorer or the cmd.exe) I'd like to remove the obj and bin folder so that I can easily zip the whole thing. 回答1: As others have responded already Clean will remove all artifacts that are generated by the build. But it will leave behind everything else. If you

What steps should I take to build and run .net core Web API application in 32-bit environment/runtime?

荒凉一梦 提交于 2020-06-01 05:12:28
问题 We developed an a .NET Core Web API application using the following technologies: -NET Core (3.1) -Visual Studio 2019 Unfortunately, we have to deploy said application to the following environment: -32-bit Environment -Windows Server 2008 R2 Enterprise (Service Pack 1) -IIS Version 7.5 -8 GB RAM Therefore, within my Visual Studio 2019, I brought up the application, and took the following steps: Force x86 in VS go to the Properties > Build and change Platform target from Any CPU to x86 Created

Shipping msbuild task as nuget

僤鯓⒐⒋嵵緔 提交于 2020-05-31 06:08:09
问题 I need your help. I'm developing an msbuild task that performs certain actions upon msbuild. I want my users to be able to download and install a nuget package and once the package is installed the build task will be part of the build process. I know how to release a nuget package and i know how to includes a custom targets file together with the nuget, what i don't know is how to add the import statement to the csproj upon nuget installation: Is there a way to do so or am i asking for too

Shipping msbuild task as nuget

萝らか妹 提交于 2020-05-31 06:08:07
问题 I need your help. I'm developing an msbuild task that performs certain actions upon msbuild. I want my users to be able to download and install a nuget package and once the package is installed the build task will be part of the build process. I know how to release a nuget package and i know how to includes a custom targets file together with the nuget, what i don't know is how to add the import statement to the csproj upon nuget installation: Is there a way to do so or am i asking for too