msbuild

How can I build a SharePoint 2010 package using command line?

限于喜欢 提交于 2019-12-17 16:23:01
问题 I have a Visual Studio 2010 SharePoint project. If I choose 'Package' from the project menu, a .wsp file is generated. How can I invoke the same build from command line (i.e. what /target is required for MSBuild)? 回答1: I got it to work, finally. The tricky part is the fact that the SharePoint targets do not exist when MSBuild loads the .sln file, you have to load the individual .csproj files. set msbuild="C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" set config=Debug set outdir=

Read AssemblyFileVersion from AssemblyInfo post-compile

若如初见. 提交于 2019-12-17 16:22:15
问题 How can one read the AssemblyFileVersion , or its components AssemblyFileMajorVersion , AssemblyFileMinorVersion , AssemblyFileBuildNumber , AssemblyFileRevision , within the .csproj, following compilation? I have tried the following which pulls the information from the built assembly: <Target Name="AfterCompile"> <GetAssemblyIdentity AssemblyFiles="$(TargetPath)"> <Output TaskParameter="Assemblies" ItemName="MyAssemblyIdentities"/> </GetAssemblyIdentity> <Message Text="AssemblyVersion = %

nunit tests throwing exception only when run as part of tfs msbuild process

情到浓时终转凉″ 提交于 2019-12-17 16:17:44
问题 I'm building and deploying a solution from Visual Studio 2015 using TFS 2012 without issues. I have decided to incorporate my unit tests as part of the prerequisites for the build process. Independent of the msbuild process, the unit tests run without issue and succeed; however, when I incorporate them as part of my build process I am getting the following exception in my build: Exception NUnit.Core.UnsupportedFrameworkException, Exception thrown executing tests in D:\Builds\4\PA1111CE

Hadoop on Windows Building/ Installation Error

让人想犯罪 __ 提交于 2019-12-17 15:58:22
问题 I am trying to install Apache Hadoop 2.7.1 on Windows x64 (8.1 and Server 2012 R2), but I am failing at goal: [INFO] Apache Hadoop Common ............................... FAILURE [ 37.925 s] In the past days, I think I followed the steps of all tutorials, like HadoopOnWindows, or this one. I did all the prerequisites, but as I Googled, the relevant ones for my problem are the following: Set path to MSBuild.exe like: C:\Windows\Microsoft.NET\Framework64\v4.0.30319; in Path Set path to CMake

How can I invoke my MSBuild Target when msbuild.exe starts and when it ends

走远了吗. 提交于 2019-12-17 15:41:24
问题 In other words, I want this Target to be invoked just once a the start and end of the whole build session, not for each individual project that might be built as part of that session. Another way to put is it that when hitting Build (F7) in Visual Studio I would like to invoke my custom Target at the very beginning and end of the build, regardless of what was built (and whether or not it was successful). Is this possible? If not, are there alternatives to using MSBuild Targets that would

Is it possible to build MSBuild files (visual studio sln) from the command line in Mono?

限于喜欢 提交于 2019-12-17 15:35:24
问题 Is it possible to build Visual Studio solutions without having to fire up MonoDevelop? 回答1: Current status (Mono 2.10, 2011): xbuild is now able to build all versions of Visual Studio / MSBuild projects, including .sln files. Simply run xbuild just as you would execute msbuild on Microsoft .Net Framework. You don't need Monodevelop installed, xbuild comes with the standard Mono installation. If your build uses custom tasks, they should still work if they don't depend on Windows executables

How do I call Visual Studio 2017 RC's version of MSBuild from a BAT file?

丶灬走出姿态 提交于 2019-12-17 15:29:25
问题 Earlier versions of MSBuild could be found here: %programfiles(x86)%\msbuild\<version>\bin\msbuild.exe. But for Visual Studio 2017RC the path is %programfiles(x86)%\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe . The type of install: enteprise, community or professional, seems to be part of the path. And that makes it difficult to specify the correct path to msbuild in a BAT file that should work on many different computers with different versions of Visual Studio 2017.

Visual Studio Rebuilds unmodified projects

做~自己de王妃 提交于 2019-12-17 15:26:51
问题 So, as the title reads, I have a VS2010 solution with ~50 projects in it right now. If I make a change to a "top level" project that nothing references then VS still rebuilds all 50 projects. I'm running Visual Studio 2010 Ultimate without any add-ons. I am using ILMerge to consolidate all of the projects into a single file. I have verified this by checking the time stamps of the lower level dlls and see that they are indeed rebuilt even though their code wasn't touched. I've read all

Delphi MSBuild Build Configurations From Command Line

淺唱寂寞╮ 提交于 2019-12-17 15:25:08
问题 Delphi 2009 uses build configurations . When you create a new project you have two default build configurations "Debug" and "Release". Now I asked myself how to automate builds using MSBuild (which is supported by Delphi since version 2007). You can start the "msbuild" command in the "RAD Studio Command Prompt" in some Delphi project directory and it will build the default build configuration (the last activated build configuration inside the Delphi IDE). Now, I want to specify a certain (non

Build once and deploy to multiple environments with msdeploy & Visual Studio 2012

泄露秘密 提交于 2019-12-17 15:24:16
问题 Working on centralizing configurations, app settings and connection strings, for multiple solutions, while also switching over to use msdeploy from command line to deploy web apps. Ideally I would want to build the packages once, and get up-to-date configurations as the packages are deployed to each environment. I need some advice on the best approach to take. Use Parameters.xml and SetParameters.xml file to dynamically swap out settings and connection strings. See http://vishaljoshi.blogspot