A file with the 'csproj' file extension is a Visual Studio .NET C# Project file.
Questions tagged [csproj]
1301 questions
0
votes
0 answers
Generating multiple dlls from one project
I found this article and works great, but there is one problem that I couldn't solve. My project references to another project just beside and some cs files are using some the members from that dll. When I try building it is complaining that it…

Dilshod
- 3,189
- 3
- 36
- 67
0
votes
1 answer
Change local path of referenced project
I'm building a set of plugin assemblies that I want to load in my main application. For that reason I have to search through a plugin directory named "plugins". I currently have my plugins attached to my main applications' solution with all projects…

msedi
- 1,437
- 15
- 25
0
votes
2 answers
Publish Website not working after Visual Studio Update 2 RC
After installing Visual Studio Update 2 RC, I'm not able to publish my current project to any azure websites or FTP. The strange thing is that, publishing by clicking right to project is not working whereas web one click to publish toolbar is still…

kkocabiyik
- 4,246
- 7
- 30
- 40
0
votes
1 answer
Cloud project to publish with Copy Local set to false for referenced projects?
I had a problem, as described here, which led me to using a single, common output directory for the built solution. For example, all release builds output as follows:
$(SolutionDir)BuildOutput\Release\
I have also set Copy…

Dave New
- 38,496
- 59
- 215
- 394
0
votes
1 answer
Which entr[ies,y] should I modify in my .csproj file?
I'm having nothing but problems and confusion with version mismatches and incompatibilities between different versions of Windows CE/CF apps and the handheld devices on which they run.
I came to realize that perhaps I am confusing CF version with…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
0
votes
1 answer
How can I solve the "The OutputPath property is not set for this project" err?
In my Windows CE app, I have been trying to change all project references from "Any CPU" (or "AnyCPU") to "x86"
To do so, I've hand-edited the .csproj file (Project > Properties... only has "Any CPU" available as an option, no "x86" (or anything…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
0
votes
1 answer
Can't open vs2003 project in vs2013
I have couple of VS2003 web applications projects and can't open them in VS2013. Every time I get the following:
What modification should I make in .csproj file to be able open project in VS2013?

Alexan
- 8,165
- 14
- 74
- 101
0
votes
1 answer
Is it possible to put `csproj.user` XML in `csproj` for version control?
Everyone says thou shalt never add *.csproj.user to TFS for version control. Fine, but what if I want to specify default command line arguments (which get saved in the file mentioned above)?
I poked around the the .csproj file, and the XML looks…

Riegardt Steyn
- 5,431
- 2
- 34
- 49
0
votes
1 answer
Copy files based on release or debug build
I am making some changes in my csproj file so when I build debug it will copy a set of debug files and when I build release it will copy a set of release files.
The Start of the…

scott lafoy
- 1,001
- 1
- 13
- 30
0
votes
1 answer
How to add content from a target in a csproj file?
I would like to add content to my web application depending on the configuration. I have declared the target in the initials target and the target looks like this :

Nicolas Penin
- 371
- 1
- 19
0
votes
1 answer
c# how should the build file be changed to allow creating DLLs for inherited classes?
I'm building a winforms plug-in project with visual Studio 2013 Express. It will be a 'toolbox' where various 'tools' can be added by copying their DLLs to some folder from where they can be seen, loaded and added on a new tabpage. I have decided…

TaW
- 53,122
- 8
- 69
- 111
0
votes
0 answers
Is there any tool that can create a .SLN off a target project that has projects references?
Is there any tool where I could something like this:
tool.exe myProj.csprj
and have it create an on the fly SLN for the project and its referenced projects, and open VS with that SLN?
Thanks!

Francisco Noriega
- 13,725
- 11
- 47
- 72
0
votes
1 answer
Is there a way to fix the imported project error for Microsoft.CSharp.targets, other than changing the reserved property to $(MSBuildBinPath)?
So I am getting the error:
The imported project
"C:\Microsoft.CSharp.targets" was not
found. Confirm that the path in the
declaration is correct, and
that the file exists on disk.
When I run this…

Phobis
- 7,524
- 10
- 47
- 76
0
votes
1 answer
changing an element of project file by xml means
some times I will have to load up to 60 winforms or class library projects into a solution.. and change the output path and reference path for each of them..
so I wrote a wpf application for the same
private void Button_Click(object sender,…

techBeginner
- 3,792
- 11
- 43
- 59
0
votes
0 answers
Multi-Line Visual Studio conditional prebuild event returns 255
I've been running a prebuild event every time I do a build. It works perfectly:
"$(MSBuildProjectDirectory)\..\..\..\Tools\SubWCRev\SubWCRev" "$(MSBuildProjectDirectory)\..\..\.." "$(MSBuildProjectDirectory)\Utilities\Revision\Revision.txt"…

Stealth Rabbi
- 10,156
- 22
- 100
- 176