msbuild

How can I copy the embedded resource into output directory as well?

倾然丶 夕夏残阳落幕 提交于 2019-12-13 03:33:43
问题 I have a rules file for workflow within my solution and its properties are Build Action = Embedded Resource, Copy to Output Directory = Copy always I can't change the build action to Content, otherwise the workflow compilation won't work. However, I need the file to be deployed to the output folder and it seems not to work. Is there anything I'm missing ? 回答1: If the file is set as an embedded resource, it should be embedded directly into the EXE as far as I know. Regardless, you can add a

MSBuild: 'error MSB6006: “cmd.exe” exited with code 1.'

社会主义新天地 提交于 2019-12-13 03:13:53
问题 When attempting to build TensorFlow with CMake and MSBuild on Windows 10, I get the following error when running MSBuild: "C:\work\tensorflow\tensorflow\contrib\cmake\build\tf_tutorials_example_trainer.vcxproj" (default target) (1) -> "C:\work\tensorflow\tensorflow\contrib\cmake\build\tf_core_gpu_kernels.vcxproj" (default target) (90) -> (CustomBuild target) -> C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code

How can I use VSTS to build and release my web app to an FTP server?

假装没事ソ 提交于 2019-12-13 02:56:31
问题 Via VSTS I am trying to automate the following process which is currently performed manually: Within VS 2017 perform a publish to file system. Set settings in web.config. Repeat 1 & 2, for each environment, e.g. Test, UAT, Production, etc. Copy those files to an FTP server. Logon to secure infrastructure, download files from FTP, and copy into place on IIS target servers. The secure infrastructure is locked down, and has limited internet access. The FTP is used as a way to move files into

Generate targets with MSBuild then import them in same session

半世苍凉 提交于 2019-12-13 02:53:54
问题 I have an MSBuild project file that generates some of its own targets, then imports them. It works nicely, except that msbuild has to be run twice to do the build—once to generate the rules and again for them to be visible to finish the build. (The logic was ported from a Makefile that itself only needed one run.) Is it possible to run the generating target, then Import , then run one of the generated targets? The following listing is a trivialized version of the actual use case which

errror XA9008: Building from the command-line requires a Business License on cloned repo

荒凉一梦 提交于 2019-12-13 02:37:24
问题 I'm currently working on a Xamarin Android project on Windows using an indie licence. when pushing to git I clone the repo to run a build (using a git pre-push hook). I do that to make sure the commit contains all the files necessary to build. Doing that I get an error: error XA9008: Building from the command-line requires a Business License If I run the same build command on the original location (where i develop using Xamarin Studio) it works file. So I wonder how Xamarin determines the

$(ProjectName) and $(TargetName) MSBuild macros not working

可紊 提交于 2019-12-13 02:14:07
问题 I am using Visual Stduio 2015 Community Edition. I have loaded a C# project and want to configure it to use shadow building, so that source files are not messed up with any binaries or intermediate build files. Tried to set the [output]/[intermediate output] directory paths of the C# project using the VS UI - the only UI-editable output path is the "bin" one and it doesn't accept MSBuild macros. Then I've unloaded the project and manually edited it. Also set the IntermediateOutputPath which

MSBuild, include files based on a group of paths

為{幸葍}努か 提交于 2019-12-13 01:55:38
问题 I'm trying to create a build script which would allow me to specify a list of paths to "module projects" that is included in a specific web site. Hence, I have this layout: customer folder |_MainProject |_ModuleProject1 |_ModuleProject2 So, basically I want to be able to specify an ItemGroup that would contain ModuleProject1 and 2, and copy relevant files from it into the MainProject. <ItemGroup> <CustomModule Include="ModuleProject1\*.csproj" /> <CustomModule Include="ModuleProjec2\*.csproj"

Creating .appxbundle using msbuild for (x86|x64|ARM)

霸气de小男生 提交于 2019-12-13 01:42:55
问题 i am trying to create .appxbundle using msbuild from developer command prompt i am using below command to create the same MSBuild KitabooBookshelf.sln /p:Configuration=Release;OutDir=..\Release\;AppxBundle=Always;AppxBundlePlatforms="x86|x64|ARM" but getting below processor architecture error. I did not find much useful resource related to this issue though many have faced similar issue. I am new to Windows store Application. trying to figure what i am doing wrong & how can i create

For an F# Type Provider, how do I make a relative path work as a static parameter?

[亡魂溺海] 提交于 2019-12-13 01:29:43
问题 Is there a good way to make a relative path work for both the type provider while programming and msbuild while building? //type AddressBookProto = Froto.Gen.ProtoGen< @"test\addressbook1.proto"> // VS GUI //type AddressBookProto = Froto.Gen.ProtoGen< @"..\test\addressbook1.proto"> // Build type AddressBookProto = Froto.Gen.ProtoGen< @"C:\Users\taggartc\froto\froto\test\addressbook1.proto"> 回答1: You could use #if #if DEBUG //or similar constant type AddressBookProto = Froto.Gen.ProtoGen< @

MsBuild with Visual Studio 2012 Package Project

天涯浪子 提交于 2019-12-13 01:25:26
问题 I have created .NET solution with Visual Studio 2012 Package Project (From VS2012 SDK ). With Visual Studio I successfully compile and run this project (along with entire solution) in " Debug " configuration mode, and for " Any CPU " platform. But when I try to build solution in command line using MsBuild , I get errors: Command: msbuild MySolution.sln /p:Configuration=Debug /p:Platform="Any CPU" Errors: error : Can not find the installation for VS SDK. error MSB4018: The