Compiling Solution with MSBuild without copying the dependencies to the output folder
Hi Everybody, is there a switch for MSBuild, that tells it not to copy any assembly dependencies to the output folder? ...
Hi Everybody, is there a switch for MSBuild, that tells it not to copy any assembly dependencies to the output folder? ...
I've now setup a MSBuild script to create the folders and files I need in the right structure for my MVC project. I'm then setting Teamcity up to look at the folder with only the files I want to have and copy that to the artifacts folder. So far, so good! However, There is a few folders in the structure that are empty, and Teamcity does ...
I have a project that was created with VS2008. I'm trying to build it with MSBuild 4.0, but still targeting the 3.5 framework. When I do so, I get the exception: [exec] ResGen : error RG0000: Could not load referenced assembly "C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\PresentationUI\v4.0_4.0.0.0__31bf3856ad364e35\PresentationUI.dll". ...
I use TeamCity which in turn invokes msbuild (.NET 4). I have a strange issue in that after a build is complete (and it doesn't seem to matter if it was a successful build or not), msbuild.exe stays open, and locks one of the files, which means every time TeamCity tries to clear its work directory, it fails, and can't continue. This hap...
I would like to have my release build use the minified version of css/javascript 'A' and the debug build use my uncompressed version of css/javascript 'A' is there any way I can do that on and ASP.Net page? Essentially I am lazy and don't want to have to change references everytime I do a publish. Thanks in advance. ...
I've read about the use of "Custom.Before.Microsoft.Common.targets" and "Custom.After.Microsoft.Common.targets" in order to execute a custom target before/after every project build and I would like to use this technique in order to change version info while building on our TeamCity build server. The problem is that although it works fo...
I would guess it has to be an ITaskItem since it's a vector instead of scalar, I've got the only 2 MsBuild books here on my desk, and I can't find examples of how to pass in an array to a task. I want to do a string array, but I'd like to know the proper way that would work with any primitive type. How do you pass in an array of string ...
I'm considering running unit tests for my Visual Studio 2010 projects on our build server at build time. The problem is that when I'm working locally, I want to test against DEV, when building for QA, I want the tests to run against QA, when building/promoting for UAT/PROD... you get the picture. I think VS 2010 might have support for...
I understand how to do build steps using the BuildStep task in MSBuild and TFS as shown here: http://stackoverflow.com/questions/226717/how-can-we-display-a-step-inside-visual-studio-build-process What I would like to have is indented build steps like the default MSBuild/TFS build steps display: I reviewed the MSDN documentation, ...
I have a very odd issue, where I've created a custom MSBuild task that would move all files I need for my MVC project to a specific location so that we can publish it. This works fine when I trigger the script localy on my machine but as soon as I check this changes in and Teamcity runs the script, it copies everything except from the Bi...
Is there a task in msbuild that's synonymous with nant's echo task? I don't want anything fancy, just a simple message output to stdio. ...
I'm making a build using FinalBuilder Pro 7. I have an asp.net web site and I'm trying to use FinalBuilder's "Precompile Asp.net 2.0 Application" action. Well, It fails. To build it successfully I need to run Visual Studio, open the web site and either build it manually from within VS or manually update all references. After that it wo...
I want to run an MSBuild Task (which signs an executable/dll) but only when the output exe/dll has changed. If none of the source files have changed causing a recompile of the exe/dll then I don't want the task to run. Despite spending several hours trying different things out I cannot work out how to get my target task to only run if ...
In my project (an XNA .contentproj) I have files that need compiling, and files that just need to be copied to the output directory: <Compile Include="Foo.cs" /> <None Include="Bar.xml"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> This works fine when i'm compiling from visual studio, but ...
I'm trying to figure out how best to set up Authenticode signing at my workplace. The security implications are stressing me out. My initial thought is that the person who controls the key should install it to the build server and secure it so that only the build account can access it. This seems reasonably secure, but it actually isn...
Hi guys, I'm currently trying to use MSBuild to set up a project, and am having some issues with wildcards. I'm trying to use the following snippet: <Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup> <Xsd Include="App_Data\*.xsd"> <Generator>MSDataSetGenerator</Generator...
Hi, I am building various projects using the <MSBuild Projects="... markup. I am then executing some command line tools after the project is built. E.g <Target Name="Name"> <MSBuild Projects="" /> <Exec Command="" /> </Target> I notice that the project is only built as required and get the following output when the build scr...
Is it possible for MSBuild to build an EXE from purely in-memory resources. For example, let's say I built a .csproj and a couple of forms and code-behind and saved to a memory stream, could MSBuild use these streams to build out an EXE? The purpose is that nothing is written to disk except the final EXE. If so, is there a good blog po...
I'm wondering if anyone has some solid advice for me. I'm trying to see if MSBuild is an appropriate tool for a client-side application (sold, commercial product). For example, if on the client machine there is .NET 4.0 and my program, I want users to be able to create screen savers and save them as an EXE. So far, all I've seen is MSBu...
Hi, I'm trying to add custom files to our web deployment package, per this blog posting: http://sedodream.com/2010/05/01/WebDeploymentToolMSDeployBuildPackageIncludingExtraFilesOrExcludingSpecificFiles.aspx <Target Name="CustomCollectFiles"> <Message Text="AppBuildFolder = $(AppBuildFolder)"/> <ItemGroup> <_CustomFiles...