msbuild

How do I deploy/publish a Web Application with CruiseControl.NET & MSBuild?

一曲冷凌霜 提交于 2019-12-21 12:31:08
问题 How do I deploy/publish a Web Application with CruiseControl.NET & MSBuild? I am new to CCNET and I able to get it to get the latest source from SVN and Build with MSBuild 3.5. How do I get the site to publish to another (DEVELOPMENT) server? Thanks for any pointers/examples. Cheers, ~ck 回答1: For publishing web sites to a development server after it is build on my CI server in CruiseControl.NET, I use Microsoft Web Deploy. It requires that you install the deployment service on any servers

MSBuild and IgnoreStandardErrorWarningFormat

♀尐吖头ヾ 提交于 2019-12-21 12:16:01
问题 I'm trying to write a MSBuild project that will generate html documentation using doxygen. I couldn't find anything about that on the net except for one example, which seems incomplete; it doesn't parse doxygen warnings. I found that MSBuild's Exec task has parameters like IgnoreStandardErrorWarningFormat and CustomWarningRegularExpression. What is the "Standard Error/Warning Format" and what kind of REs are allowed in these properties? Edit: ah, "Inside the Microsoft Build Engine" wrongly

MSBuild: Ignore targets that don't exist

送分小仙女□ 提交于 2019-12-21 11:59:48
问题 Solution1.sln contains two projects: ProjectA.csproj ProjectB.csproj ProjectB has a custom target called "Foo". I want to run: msbuild Solution1.sln /t:Foo This will fail because ProjectA doesn't define the "Foo" target. Is there a way to make the solution ignore the missing target? (E.g., do nothing if the target doesn't exist for a specific project) without modifying the SLN or project files? 回答1: There is a two-part solution if you don't want to edit the solution or project files and you

creating a targeted OBJ folder for a project in Visual Studio

こ雲淡風輕ζ 提交于 2019-12-21 10:16:13
问题 Is it possible to create a targeted OBJ file path much like you can do for a BIN folder? You can set the output path in the Project's properties. Example paths would be: Bin\Debug\Windows Phone 7\ Bin\Debug\NETMF\ Bin\Debug....\ A use case here is if I have multiple projects that target different platforms. On compiling, the OBJ file is shared instead of separated out like the bin folders are. When compiling, you hit race conditions where the OBJ folder is being leveraged at the same time and

How do I compile a project for both .Net 3.5 and 4 at the same time

倖福魔咒の 提交于 2019-12-21 09:36:37
问题 I need to compile a project for both .Net 3.5 and .Net 4.0. What is the most low-friction way of doing this? If I reference this project from another assembly, how do I determine which runtime is being targeted? Or should I just reference binaries directly? 回答1: I do this simply by having two csproj files. Then I can set the version, references, build-symbols, etc easily. To avoid having to maintain the file list in both, I use a blanket include - i.e. I have (in the secondary .csproj):

How to use MSBuild on the sfproj?

怎甘沉沦 提交于 2019-12-21 09:18:46
问题 Trying to get my Service Fabric application building on a build server. When I build the .sln file, the sfproj's Package target is not run. As expected. I cannot seem to get MSBuild to run this target. First, the only targets available when building against the .sln file are the standard Build and Publish targets. Second, building against the .sfproj itself DOES get the target running. However, because of the mismatch of $(BuildPlatform), the projects referenced by the .sfproj do not build

Where to get msbuild for Linux [duplicate]

梦想与她 提交于 2019-12-21 09:17:38
问题 This question already has an answer here : How to install MSBuild on OS X and Linux? (1 answer) Closed 4 months ago . I want to build a .net core project on Windows and Linux. For Windows I use MSBuild, simply downloaded the Build Tools für Visual Studio 2017 from visualstudio.com. But where do I get MSBuild for Linux from? Based on the GitHub Project site, it should be available on some Linux distributions (README.md). I do not want to compile it myself (for some reasons). I do not want to

Building a particular revision in Jenkins Pipeline

倖福魔咒の 提交于 2019-12-21 09:15:20
问题 I am using SVN as my source control repository and Jenkins as my CI tool. I run MSBuild scripts using Jenkins to do the actual builds and deploys. I also use the Jenkins Pipeline plugin to do manage the building of downstream projects. I have an issue with the pipeline. The problem is that, say I have done 10 check-ins into SVN and as a result 10 automatic CI builds have taken place, and as a result of that the pipeline shows 10 builds. Now, if I want to push build number 5 to the next stage

Using CMake with Windows 7, Visual Studio 2010, and the command line

╄→гoц情女王★ 提交于 2019-12-21 09:13:33
问题 How do I use CMake with Visual Studio 2010 on the command line? With Visual C++ Express Edition (2010) I would type: cmake . nmake nmake install simple. I noticed with Visual Studio 2010, CMake generates a solution file instead of a Makefile. So I type: cmake . msbuild mysolutionfile.sln But then what? I used to be able to type "nmake install" and it would install the project. What do I type now to install the project? 回答1: Two points: 1- CMake: You can choose your generator. Visual Studio

Visual Studio 2017 package tab is missing in project settings

自作多情 提交于 2019-12-21 06:58:20
问题 I created a simple library .NET Framework project. I would like to generate NuGet packages after build as described here. However, the Package tab is missing, here is a screenshot: 回答1: Visual Studio 2017 package tab is missing in project settings That because your project is library .NET Framework, which still using packages.config to manage NuGet packages. And Package tab is only supported by the new nuget package management form: PackageReference . .NET Standard class library or .NET Core