msbuild

Consuming nuget package containing .targets file via PackageReference

痞子三分冷 提交于 2020-07-23 04:53:46
问题 I have .NET452 project - lets call it Consumer.csproj that I want to consume nuget lets call it SharedTargets that contained some custom targets files ( SharedTargets.targets ) from msbuild. I'm using PackageReference format and now (compared to what it used to be) nuget packages are being restored to shared folder (%userprofile%.nuget\packages), and I'm not sure if it is good idea to reference it via that (doesn't feel right). Eg: <PackageReference Include="SharedTargets"> <Version>1.0<

Consuming nuget package containing .targets file via PackageReference

风格不统一 提交于 2020-07-23 04:53:41
问题 I have .NET452 project - lets call it Consumer.csproj that I want to consume nuget lets call it SharedTargets that contained some custom targets files ( SharedTargets.targets ) from msbuild. I'm using PackageReference format and now (compared to what it used to be) nuget packages are being restored to shared folder (%userprofile%.nuget\packages), and I'm not sure if it is good idea to reference it via that (doesn't feel right). Eg: <PackageReference Include="SharedTargets"> <Version>1.0<

Consuming nuget package containing .targets file via PackageReference

你离开我真会死。 提交于 2020-07-23 04:51:54
问题 I have .NET452 project - lets call it Consumer.csproj that I want to consume nuget lets call it SharedTargets that contained some custom targets files ( SharedTargets.targets ) from msbuild. I'm using PackageReference format and now (compared to what it used to be) nuget packages are being restored to shared folder (%userprofile%.nuget\packages), and I'm not sure if it is good idea to reference it via that (doesn't feel right). Eg: <PackageReference Include="SharedTargets"> <Version>1.0<

Consuming nuget package containing .targets file via PackageReference

佐手、 提交于 2020-07-23 04:51:07
问题 I have .NET452 project - lets call it Consumer.csproj that I want to consume nuget lets call it SharedTargets that contained some custom targets files ( SharedTargets.targets ) from msbuild. I'm using PackageReference format and now (compared to what it used to be) nuget packages are being restored to shared folder (%userprofile%.nuget\packages), and I'm not sure if it is good idea to reference it via that (doesn't feel right). Eg: <PackageReference Include="SharedTargets"> <Version>1.0<

MSBuild.exe gives errors about Nuget package conflicts, what does it mean?

旧巷老猫 提交于 2020-07-10 07:01:25
问题 Working in VS2017 I have a C# project .Net 4.6 using several Nuget packages. On my dev machine from within VS it builds just fine, I've tested it will restore Nuget packages from completely clean and build correctly. On our build machine it is build using MSBuild.exe and now everything is going wrong. Build>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe" ".sln" /p:Configuration="Release" /p:Platform="Any CPU" /p:version=4.2.0.3230 /m " Microsoft

Always run post build event commands in visual studio 2017

丶灬走出姿态 提交于 2020-07-06 10:27:51
问题 Currently, when I run my project, it will execute my post-build commands that I have set up. However, this is only true if there was a change to the project. My ultimate goal here is to have my project run ng build each time I build it. However, what I have noticed is that if I were to change an HTML file in angular, the project does not detect any changes so it does not build again and thus it does not run my ng build command. Is there a way to force it to always run post-build commands or

Always run post build event commands in visual studio 2017

社会主义新天地 提交于 2020-07-06 10:27:26
问题 Currently, when I run my project, it will execute my post-build commands that I have set up. However, this is only true if there was a change to the project. My ultimate goal here is to have my project run ng build each time I build it. However, what I have noticed is that if I were to change an HTML file in angular, the project does not detect any changes so it does not build again and thus it does not run my ng build command. Is there a way to force it to always run post-build commands or

Always run post build event commands in visual studio 2017

无人久伴 提交于 2020-07-06 10:27:14
问题 Currently, when I run my project, it will execute my post-build commands that I have set up. However, this is only true if there was a change to the project. My ultimate goal here is to have my project run ng build each time I build it. However, what I have noticed is that if I were to change an HTML file in angular, the project does not detect any changes so it does not build again and thus it does not run my ng build command. Is there a way to force it to always run post-build commands or

How to use MsBuild MsDeployPublish to target local file system?

不羁的心 提交于 2020-07-04 04:43:05
问题 I'm trying to replicate the Visual Studio 2010 "Publish..." command (applicable to Web Application projects) where I would in the UI choose Publish Method: "File System". My attempt at this is... %msbuild% /t:MsDeployPublish /property:MsDeployServiceUrl="file:///d:\MyDeploymentFolder";MsDeployPublishMethod="File System" "d:\MySourceFolder\Project.csproj" ... and having tried a method of "FileSystem", "File System", "Local", and a few others. The error I get implies that MsDeploy is still

How to use MsBuild MsDeployPublish to target local file system?

自古美人都是妖i 提交于 2020-07-04 04:42:05
问题 I'm trying to replicate the Visual Studio 2010 "Publish..." command (applicable to Web Application projects) where I would in the UI choose Publish Method: "File System". My attempt at this is... %msbuild% /t:MsDeployPublish /property:MsDeployServiceUrl="file:///d:\MyDeploymentFolder";MsDeployPublishMethod="File System" "d:\MySourceFolder\Project.csproj" ... and having tried a method of "FileSystem", "File System", "Local", and a few others. The error I get implies that MsDeploy is still