csproj

How do I change "Specific Version" default value when adding a reference?

When I add a reference to my project, I usually want to use Specific Version = FALSE. This is because our automated build will set the version number. I see the default behavior is to be TRUE. Is there a way to change this? Counting on manually changing that value is error prone (and I end up breaking the build). ...

C# nant build using .csproj files

Hi all, Typically when doing a build script for C# I just include */.cs for each project/dll to build. However I now have a situation where I have some .cs files which are not part of the project but live in that directory (they are there for reference purposes from another library). There are not linked in the .csproj file so the VS ...

csproj from VS2008 fail to compile with mono xbuild

Hi, I use Mono 2.6.4 compiled from source on CentOS to compile a VS2008 project in C#. Some csproj compile, but this one doesn't, here is the output of xbuild /t:detailed : /opt/mono-2.6.4/lib/mono/2.0/Microsoft.CSharp.targets: error : Error executing task Csc: Input string was not in the correct format Error executing t...

MS-Build BeforeBuild not firing

I'm customising a .csproj project to run some custom tasks before the main build. However, I can't get the tasks to execute at all. I uncommented the <Target Name="BeforeBuild" /> element in the .csproj file and added a simple Message task, but when I build, the message doesn't appear in my output, so it seems the task isn't running. S...

Use $safeprojectname$ (Template Project) in msbuild targets

Hi, I have a VS2008 Template Project. This project has a script.targets (MSBUILD). I want that when I create new project from Template Project, I use $safeprojectname$ value in my targets file. is it possible ?? sample MSbuild targets <Project InitialTargets="Install" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; ...

Opening existing project in Visual Studio 2010

All, I have a project that was originally written in vs 2005 or earlier (don't remember bc I didn't write it). I opened it in vs2008 and converted it although it still has the csproj file. sln file states: Microsoft Visual Studio Solution File, Format Version 10.00 Visual Studio 2008 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"...

csproj Assembly Manifest Information

Can someone please explain what all the fields in the assembly information dialog really mean and what purpose they serve? And more importantly how to go about filling it up (Best practices) I went through the MSDN documentation which basically just expands the labels in the dialog to complete sentences without adding any worthwhile inf...

How do I get a diagram of the dependencies between my C# projects

I have a fairly complex application which has been broken up into multiple components. Each component has a solution file which contains a bunch of projects. So I like to think of this as a component has multiple projects/dlls in it. There is also a "common" component. All the other components depend on "common". So a compile goes like t...

Where does Java Project Explorer load files from in Eclispe IDE

I'm a .Net guy and used to csproj/vbproj files being the central repository for all folders/files in a .Net project. What's the equivalent in Java explorer in Eclipse IDE? Where does it store the folders/resources and their physical paths etc? ...

XPath and *.csproj

I am for sure missing some important detail here. I just cannot make .NET's XPath work with Visual Studio project files. Let's load an xml document: var doc = new XmlDocument(); doc.Load("blah/blah.csproj"); Now execute my query: var nodes = doc.SelectNodes("//ItemGroup"); Console.WriteLine(nodes.Count); // whoops, zero Of course,...

Reading the list of References from All csproj project of solution sln (programmatically)

I have solution sln, that has many csproj projects. anyone know a way to programmatically read the list of References of all csproj projects in a VS2008 of sln file? ...

Tfs2010 Build Number and Assembly File Versions & MSBuild targets

Hi all, I read John Robbins' article TFS 2010 Build Number and Assembly File Versions: Completely In Sync with Only MSBuild 4.0, and I'm wondering about the best way to go about integrating this. The download for the article has two files, one is a targets file and one is a proj file. The targets file has a number of tasks to scrape ...

Default values for child elements of <PropertyGroup> in csproj file?

How do I find out about the default values for the various children of <PropertyGroup> in my VS2008 csproj files? I am still wading through my continuous integration server settings to support automated version updating and installer creation via WiX. I found a file that was not processed by my Python script (does Target updating for m...