version number inside AssemblyInfo.cs update outside visual studio
Is it possible to update the version number(AssemblyVersion("1.0.2.1")) insdie AssemblyInfo.cs outside visual studio???(Maybe using a script or a batch file) ...
Is it possible to update the version number(AssemblyVersion("1.0.2.1")) insdie AssemblyInfo.cs outside visual studio???(Maybe using a script or a batch file) ...
I'm a newbie to msbuild and tfsbuild and I would like to setup the automated build system. I have multiple teams (set up as TFS projects), each with their own products ,. each product consisting of many features (think business layer, gui, tooling as separate features). I need a concise / high-level documentation on msbuild and tfsbuil...
I've found that in the .csproj for an ASP.NET MVC project there is the following target: <Target Name="AfterBuild" Condition="'$(MvcBuildViews)'=='true'"> <AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)\..\$(ProjectName)" /> </Target> This examines the MvcBuildViews bool property in the .csproj which if set to true ...
Is it possible to pass a property from one msbuild project to another? So in one .proj file there is a property with PropertyName="Foo" (for example). Can we access this from another .proj file i.e. use "$(Foo)" in the other msbuild project? ...
Hi We are in the process of migrating from TFS 2005 to Perforce and moving to more Simple TDD type process for our software. Do you have any resources for setting Perforce up as an intergation and build server? Looked at this question http://stackoverflow.com/questions/419181/build-management-continous-integration-best-practices wh...
I'm trying to copy several files in the $(TargetDir) to another folder (e.g. C:\BinCache), but for whatever reason I cannot get MSBuild to stop complaining. <Target Name="AfterBuild"> <Copy SourceFiles="$(TargetDir)\*.*" DestinationFolder="C:\BinCache" /> </Target> What am I doing wrong here? EDIT: The solution is t...
I am writing a small application at the moment and am trying to organise my build output to be a little closer to the finished product. The application is made up of a number of different projects. There is a core library that contains most of the functionality, a GUI app and a command line app that both reference the Core Dll, and a num...
Hi, The question is as above... ...
Howdy. Is it possible to write a Condition in msbuild that checks if a certain process exists? Or, alternatively, does anyone know of such a task? Today, my process creates a pid file, which existence I check. But I do not like all the extra maintenance involved with such a file. Any ideas? ...
I have the following lines in my MSBuild project file: <PropertyGroup> <TestResultsFileName Condition=" '$(TestResultsFileName)' == '' "> TestResults.trx </TestResultsFileName> <TestResultsFilePath>$(OutDir)\$(TestResultsFileName)</TestResultsFilePath> </PropertyGroup> I need to create another file, having the same...
I've just switched to using msbuild to precompile my website and now I'm getting this strange error: I have a call to Membership.GetUser() which throws: [NullReferenceException: Object reference not set to an instance of an object.] System.Web.Security.Membership.GetCurrentUserName() +36 System.Web.Security.Membership.GetUser() +7 ... ...
I've noticed projects such as Msbuild Extension Pack and MsBuild Community Tasks give msbuild the power to install assemblies, sql, and setup IIS. These features seem to be oriented to doing installs and not builds. So I was wondering how many people out there are using msbuild, perhaps in conjunction with Cruise Control.Net to do in...
How can I publish a web app using msbuild through the command line or insdie a batchfile?? ...
I'm currently porting a large Linux project to Visual Studio. The project depends on a number of third-party libraries (Python, MPI, etc.) as well as a couple of in-house ones. But it can also be built without these libraries, or with only a few of them. So I don't want to create a different configuration for each possible combination, e...
I have a .NET app that I produce several different versions - the exact same app but with different 'branding' (splash screen, name, etc.). I have all of those differences outside the main executable so they're picked up at runtime, however I can't do this with the program icon because it's baked into the .exe. I'd like to avoid making ...
Hi folks, i have a custom Task which i use in MSBuild. Works great. Previously, i had some properties which accepted some string data. It was suggested I should change them to ITaskItem's. This way, if i have spaces, i shouldn't have a problem. Previous code public class CompressorTask : Task { .... public string CssFile...
Hi, I am trying to build the documentation for my application using Sandcastle Help File Builder. I added the Msdn cache component to the .shfbproj file as follows: <ComponentConfigurations> <ComponentConfig id="Cached MSDN URL References" enabled="True" xmlns=""> <component id="Cached MSDN URL References" type="SandcastleBuilder...
Hi, How does one call a class static method from msbuild and store its results in a list? EDIT: Okay, let me explain a bit further. I am using sandcastle help file builder to generate documentation for my application. One of the requirements is that you must specify the documentation sources as follows: <DocumentationSources> <Docum...
While programming in C# using Visual Studio 2008, I often wish for "automatic" code generation. If possible, I'd like to achieve it by making my MSBuild solution file call out to Rake, which would call Ruby code for the code generation, having the resulting generated files automatically appear in my solution. Here's one business exampl...
I think I need to use custom 'svcutil' options to generate a WCF client. I know that I can provide a custom pre-build Event in my project file and apply the svcutil command line there. However I'm wondering if there's any documentation on what overridable rules or targets exist in MSBuild that can be used to override the default comman...