csproj

Partial .csproj Files

Is it possible to split the information in a .csproj across more than one file? A bit like a project version of the partial class feature. ...

Compiling a .vbproj or .csproj project file without Visual Studio

Is there a way to compile a .vbproj or .csproj project file directly, just like Visual Studio does? When you compile in Visual Studio, the "output" window shows the actual call to the compiler, which normally looks like: vbc.exe [bunch of options] [looooong list of .vb files] I would like to programatically call "something" that would...

What use is the Aliases property of assembly references in Visual Studio 8.

When I add an assembly reference to a project in Visual Studio 8 the Aliases property, of that reference, is set to "global". What is this property good for and why is it set to global? MSDN tells me that this is a list of aliases for the assembly but not why I might want to use this property or why most are aliased as "global". MSDN ...

Why does VS 2008 create PDBs for some RELEASE projects but not others?

I have a solution containing several projects that have migrated from VS 2003, 2005, 2008. When compiling all the projects for the RELEASE configuration, VS 2008 creates PDB files for some projects, but not others. Why? In the Build tab of the Properties page for each project, I can see they all have "Define DEBUG constant" unchecked an...

Change web project to class library

Is there any way but copying the .cs files? Changing the .csproj file? But how? There is a related question, but I'm not satisfied with the answer: link ...

How can I get something to (really) run AfterPublish using MSBuild

I need to shell out (to call svn commit on my .application file) after a ClickOnce publish. However I've not been able to find a way to hook it into my MSBuild .csproj file. The PostBuild Event is too early And calling 'start Some.exe' in PostBuild does not run in the background And using the AfterBuild Target from MSBuild is done befo...

In Visual Studio (2008) is there a way to have a custom dependent file on another custom file?

Instead of a *.cs code behind or beside I'd like to have a *.js file. I'm developing a MVC application an have no need for a code beside because I have controllers, but in certain cases it'd be nice to have a JavaScript code beside or some way to associate the file to the page it's being used on. I suppose I could just name them simila...

WiX(v3): Harvesting a .csproj with heat.exe in vs2008?

The Question Newly initiated into WiX, I researched and found that v3 uses a tool (heat.exe) to "harvest" information into WiX fragments. I have managed to stumble about and find information on this tool, but none of it seems up to date for the latest heat.exe. Either i am looking in the wrong location, or this is thinly documented. So...

Why does my co-worker see a different Project file (*.csproj) using Visual Source Safe

Hello everybody, I met a problem which is very strange, my company uses Visual Source Safe to control version,but I found that my team's different member see the same .csproj file in VSS is not the same, it's very strange,can you help me? thanks!! there is a file named IPRA.WinUi.Sal.Sra.csproj in VSS: when Tom log on ,the file 'IPRA....

Adding Asp.net mvc to existing web app how to get scaffold options

I followed the guidance in the Professional Asp.net 1.0 Wrox book for adding the MVC references to an exisiting web application and it works well except for the scaffolding options. When i right click a controller i do not get the scaffold view options that you get in a new asp.net mvc app. I am sure there is a .csproj hack that is neede...

In a .csproj file, what is is <None Include="..."> for?

How is <None Include="C:\foo.bar" /> different from <Content Include="C:\foo.bar" /> ? Thanks ...

Targeting both .NET 3.5 and Silverlight

Let's imagine I already have a project building .NET 3.5 assembly. Now I want to build this assembly for Silverlight, and moreover, maintain its Silverlight version with minimal efforts further. What is not acceptable: Creating separate project for Silverlight build What is acceptable: Adding custom directives allowing me to targ...

Does anyone know how to make notepad++ treat csproj files as XML automatically?

Dear ladies and sirs. I often use notepad++ for editing of the csproj files. And I always need to go to the Language menu and select XML in order to get syntax highlighting. Is it possible to configure notepad++ to treat csproj files as XML automatically? Thanks. ...

Set source file dependencies in csproj file without manually editing

I want to group all the files of my partial classes similar to the way that myForm.cs, myForm.resx, and myForm.Designer.cs are. I can do this by manually editing the csproj file and adding DependentUpon elements to the files, but can I do it using the GUI instead? ...

Recompile ASP.NET web project without giving it a virtual directory

In my line of work I'm often retrieving very specific versions of crusty ASP.NET web apps from their long-forgotten repositories, making minor changes and then recompiling. A major annoyance in this process is having to create a virtual directory for every web project that I need to recompile. I don't have any problems with the process,...

Including content files in .csproj that are outside the project cone.

I have a C# project say MyProject.csproj located at "C:\Projects\MyProject\". I also have files that I want copied into the output directory of this project. But, the files are at the location "C:\MyContentFiles\", i.e. they are NOT within the project cone. This directory has sub-directories as well. The contents of the directory is not ...

What controls the ProductVersion setting in .csproj files?

Every now and then our source control engine indicates that the ProductVersion in a .csproj file has changed. We're using VS2008 SP1. Looking through the codebase I can see two versions reported: <ProductVersion>9.0.30729</ProductVersion> and <ProductVersion>9.0.21022</ProductVersion> Does anyone know why and when Visual Studio de...

Access solutioninfo.cs and assemblyinfo.cs from within .csproj

I need to access some information from my solutioninfo.cs and assemblyinfo.cs within my .csproj file and use it as a property. use the value of // my solutioninfo.cs [assembly: AssemblyCompany("MyCompany")] in my csproj: // my .csproj <PublisherName>MyCompany</PublisherName> Is there a way to access the values? ...

Open Visual Studio project as readonly

Scenario: I'm using svn:externals to grab Microsoft.Practices.ServiceLocation from CodePlex. However, referencing the csproj-file in my own project causes an upgrade from 2005 to 2008. This makes my copy of the project file different from the base copy, and I am unable to update the project from subversion. An update of ...\deps\Micro...

Error HRESULT E_FAIL when pasting references in Visual Studio

I know this isn't a programming question but it is a programming tool question. In Visual Studio 2008 Team Edition (version 9.0 with .NET 3.5 SP1) when I copy and paste references from one csproj to another (with the context menu in the 'Solution Explorer' view) I get the following error: Error HRESULT E_FAIL has been returned from...