I’m seeing some odd behaviour I can’t explain.
I'm using wix to generate a msi and using the msbuild GenerateBootstrapper task to handle pre-requisites. It all seems to build correctly i.e. there are no error or warnings but the generated setup.exe won’t run. It gives a nice blank error dialog and the event log gives about the same inf...
I need to create multiple /testcontainer: parameters to feed into a task that exec's MsTest.
I have the following :
<ItemGroup>
<TestFiles Include="$(ProjectPath)\**\UnitTest.*.dll" />
</ItemGroup>
for each match in TestFiles I would like to build a string like so:
"/testcontainer:UnitTest.SomeLibrary1.dll"
"/testcontainer:U...
I need to write a custom task that print all the defined properties (the non-reserved ones). So in my C# code, I wanna access to the properties list of MSBuild engine and I don't know how. Please help.
...
Hi, I updated my Visual Studio 2010 to the version 10.0.30319.1 RTM Rel and start getting the following exception during the build:
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Silverlight.Build.Tasks.CompileXaml.LoadAssemblies(ITaskItem[] ReferenceAssemblies)
at Microsoft....
This is already cross-posted at MS Connect:
https://connect.microsoft.com/VisualStudio/feedback/details/560451
I am attempting to override the property $(MSBuildExtensionsPath) when building a solution containing a C# web application project via msbuild. I am doing this because a web application csproj file imports the file "$(MSBuildE...
Hi all,
We've recently upgraded from VS2008 -> VS2010 (and hence upgrading from Web Deployment Project to proper deployment project).
Obviously what's new in VS2010 web deployments is the introduction of Workflow as the build process template.
Previously, we used a MSBuild task in the WDP to execute the Yahoo YUI Javascript/CSS compr...
I'm trying to get MSBuild 2010 to publish a web app to a specific location.
I can get it to publish the deployment package to a particular path, but the deployment package then adds its own path that changes.
For example: if I tell it to publish to C:\dev\build\Output\Debug then the actual web files end up at C:\dev\build\Output\Debug\...
Hi,
Fairly simple question i imagine but i can't seem to make it work. I'm trying to output the variable from one target, into the parent target which started it. For Example,
Target 1 simply calls the task in file 2, and is supposed to be able to use the variable set within that. However i just can't seem to get it to work (wrong synt...
Looking at this article from MS, I have a question about the SolutionToBuild section.
<ItemGroup>
<SolutionToBuild Include="$(SolutionRoot)\path\MySolution.sln />
<SolutionToBuild Include="$(SolutionRoot)\Scribble\scribble.sln" />
<SolutionToBuild Include="$(SolutionRoot)\HelloWorld\HelloWorld.sln" />
<SolutionToBuild In...
Hi, any one tried this before?
...
When implementing a microsoft.build.utilities.task how to i get access to the various environmental variables of the build?
For example "TargetPath"
I know i can pass it in as part of the task XML
<MyTask TargetPath="$(TargetPath)" />
But i don't want to force the consumer of the task to have to do that if I can access the variable...
I'm developing a custom MSBuild task by inheriting from the base Task class. My task calls the Copy task declared in Microsoft.Build.Tasks.dll setting the DestinationFolder property in the process. My custom task has a property called DestinationFolder declared as
public ITaskItem DestinationFolder { get; set; }
When calling this tas...
Hi all,
I have just revised my question. Actually i wan to create an empty txt/.sql file in TFS 2008 Source Control server at designated directory/folder where developers can add sql script for their part of development.
I need this file to be created automatically each time our nightly build script runs. I have created directories or...
I'm trying to post-process the documentation XML file as a post-build XSLT transformation (using the new XSLTransformation step), but the build fails with error Unable to execute transformation. Could not find file 'C:\...\documentation.XML'. The documentation XML file shows up fine on disk after the build is complete, but during the Aft...
How using MSBuild Copy task? and Making target as lowercase filename?
<Copy SourceFiles="@(DATA)" DestinationFiles="@(DATA->'$(MSBuildProjectDirectory)\BuildWin32\data\%(RecursiveDir)%(Filename)%(Extension)')"/>
I mean, the part "%(RecursiveDir)%(Filename)%(Extension)" become lower case file name and folder name?
...
We are trying to use Static Resources within a 100% F# Silverlight application. Embeded within the XAML of the referencing control, everything works. But once I pull them out I am a loss. C# applications set the build action as: MSBuild:MarkupCompilePass1
Two questions
1) does VS 2010 support this tool yet in f# silverlight projects...
I'm trying to add an Import task to a .csproj file programmatically, but I don't want to use the Microsoft.Build.BuildEngine objects to do this because VS will then pop up warnings about the project file being modified from outside of Visual Studio.
I've seen a few pages [1] [2] suggesting that the IVsBuildPropertyStorage interface will...
I've written a custom task for analyzing code coverage results. While building the entire solution, I get the following error.
error MSB4018: System.IO.FileNotFoundException: Could not load file or
assembly 'Microsoft.VisualStudio.Coverage.Analysis, Version=9.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its depen...
Hi,
I have the following scenario. We use stored procedures to access the database and we use LiNQ 2 SQL to generate the classes or namely we use Unplugged LINQ to SQL Generator for this. It has been run as a custom tool but diffing the generated classes is a big pain in the neck. We would like to auto generate the classes but exclude i...
In the context of creating a custom Microsoft.Build.Utilities.Task how do I get access to the MSBuild verbosity?
Microsoft.Build.Utilities.Task: http://msdn.microsoft.com/en-us/library/microsoft.build.utilities.task.aspx
MSBuild verbosity: http://blogs.msdn.com/b/saraford/archive/2008/10/07/did-you-know-you-can-configure-the-msbuild-ve...