Here is a story what I recently ran into and a possible answer(?) I just wanted to share this information because I could not find this yet at stackoverflow.
I upgraded my solution from VS2008, WinXP, 32bit TO VS2010, Win7, 64bit.
When I make modifications on WinForms that generate new RESX files, or update the RESX files, I'm running ...
Hey guys,
In our Sql Server 2008 database project we reference some outside .dbSchema files. When I try to build the database project using MSBuild, I get a weird warning (We are using TFS 2010 for our build server if that makes a difference):
Microsoft.TeamFoundation.Build.targets (1777): An error occurred when opening a file "file.d...
I have a solution that contains two projects (web services and client application).
When i built solution, i always need to update Web References manually (web service's proxies).
Is there any way to do it automatically with MSBuild?
...
I have a visual studio 2010 project that is trageted to .Net Framework 3.5. The project build fine from the Visual Studio but when I try to compile it from command line or from TeamCity I get the following build error:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFX.targets(269,9): error MC1000: Unknown build error, 'Ca...
I am building two solutions with MSBuild:
<ItemGroup>
<SolutionToBuild Include="$(BuildProjectFolderPath)/HostASPX/SolutionA.sln"/>
<SolutionToBuild Include="$(BuildProjectFolderPath)/../Installer/SolutionB.sln"/>
</ItemGroup>
It seems that this build fails with the error message:
Unable to remove directory "...
Can someone point out any tutorials that help build windows services using msbuild.
Requirements :
- Should not use the csproj file
- Output should be the same as the publish option in Visual Studio
Updated question:
We have a project of type windows service in our solution. In this windows service, we are referencing a couple of libr...
What reasons could there be for the following strange behaviour, and how might I track down the issues?
We use a combination of make files and msbuild.
I have a project which needs to be strongly named. I was previously setting the snk to use in the project file like this:
<AssemblyOriginatorKeyFile>$(EnvironmentVariable)TheKeyName.s...
Something like
msbuild /t:publish [use PublishProfileName] someproject.csproj
...
I want MSBuild to build WIX 3.5 project containing static files and binaries from another project's output folder. While with static files it all works just fine: I just set Source attribute of File element to "..\AnotherProject\Static\StaticFile.ext", I can't reference binaries, because they aren't in "..\AnotherProject\bin\Release\" fo...
In Visual Studio 2010 we have under 'tools|options|projects and solutions|build and run' (couldn't find a correct image on the internet) two options for the logging of MSBuild:
'MSBuild project build output verbosity' and
'MSBuild project build log verbosity'.
So I was hoping to be able to get a minimal build log in the output view wit...
I have a property in MSBuild to represent the directory above the MSBuildProjectDirectory:
<PropertyGroup>
<BuildDir>$(MSBuildProjectDirectory)\..</PRSBuildDir>
</PropertyGroup>
I need to then use this property, but I need the directory string cleaned so that it doesn't include the ... In other words I need the .. evaluated, so t...
Forgive me if this is too simple - I'm almost completely new to MS Build. I have a project that is creating two different Silverlight solutions and the file hierarchy looks like this:
+ Project123
+ Assets
+ Images
+ Fonts
+ Video
+ Source
+ SL3
- Project123-SL3.sln
+ Solution
- App.xaml
+...
I am using the MSBuild copy and then Concat to concatenate multiple SQL files. Some of the SQL files are in some other format (opens in notepad), but after Concat gets to the files, there are strange characters all over the resulting files.
Can anyone help me, has anyone experienced this before? How can I convert all SQL files to ascii...
I have a Silverlight 3 project with something like this:
<ItemGroup>
<Content Include="Content\image1.png">
</Content>
</ItemGroup>
Basically I've added a PNG file to my project and set its build action to "Content". This works nicely.
Now what I'd like to do is be able to add images in a different format to my project, and have ...
Is there a way to make sure that all of the environment variables from MSBuild are propagated to the batch scripts that I am calling from my custom build steps? It would be really nice to use variables like %CONFIGURATION% and %TARGETPATH% in the batch files...
...
I have installed VS2010. I have a simple .build file which contains this.
<?xml version="1.0"?>
<project name="system" default="build">
<target name="build">
<exec program="C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild.exe">
<arg value="C:\System\system.build" />
</exec>
</target>
</project>
...
In my project, static checking is disabled, but still, when I run msbuild.exe with cmd, it starts static checking for each project... Is there a way, with parameters, to disable this?
...
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 CustomWarningRegularExpress...
I'm looking for resources for learning MS Build (not just books). At this point I'm mostly concerned with merging assemblies and automating build tasks. (nightly builds etc.)
...
We are currently using TFS as our source code repository, but I prefer NAnt as my build engine over MSBuild. I was wondering if anyone knows if it is possible to use NAnt for the build engine but still get the benefits of having a TFS gated check-in build?
...