A file with the 'csproj' file extension is a Visual Studio .NET C# Project file.
Questions tagged [csproj]
1301 questions
-1
votes
1 answer
Compiling in release with new .csproj generates different .dll comparing to old .csproj
I've got a class library created with VS2015, and now I have to add multitarget support.
Since the new VS2017 .csproj format handles it in a pretty neat way, I've decided to migrate to the new format. So now my .csproj looks like this:

lerp90
- 503
- 8
- 23
-1
votes
1 answer
OWIN app on new (SDK) csproj format
While converting an OWIN app to the new csproj format I hit a few issues. The first issue had to do with the changed output directory (since it now includes the runtime in the path). This threw the following error:
Could not load file or assembly…

jaredcnance
- 712
- 2
- 5
- 23
-1
votes
1 answer
Add folder from solution to C# .NET project Content output
I want to include files from the solution directory, regardless of where the files are. I added this to my .csproj file:
But the files do not appear in the solution…

Tomáš Zato
- 50,171
- 52
- 268
- 778
-1
votes
1 answer
How can I use different C++ files in test and production code?
Please consider the following scenario: I have a C++ file and we call that C++ code from the C#. In C++ file, there is a flag
#define HasFeature
I would like this flag to be undefined in the production code, and in only my test code I want to…

Barış Akkurt
- 2,255
- 3
- 22
- 37
-1
votes
1 answer
dotnet core build PreserveNewest no working
I am playing with dotnet core, I started a (very) simple blog project (using NancyFx and EF core).
All is working well except view resources copying at build time. My cproj specifies the following :
…

Olivier Duhart
- 362
- 3
- 14
-1
votes
1 answer
Is it possible to use the CSPROJ version when creating NuGet packages via gulp?
I'm currently using a gulp file to create a NuGet package automatically whenever the project is built. One trouble I'm currently having is the versioning - ideally I'd like the NuGet package version to reflect the version of the project.
I've…

Sam Holder
- 35
- 5
-1
votes
1 answer
Sharing csproj files between solutions
I've been looking into this for quite a long time and still havent found any satisfying solutions. We have a few shared libraries (.csprojs) which also have dependencies on each other as well as 3rd party dlls. I want to have these shared projects…

jcfore21
- 72
- 6
-3
votes
1 answer
Converting to VS 2017 .csproj format with PackageReference
I have a legacy solution which I've been gradually upgrading and now want to upgrade the .csproj and .vbproj files to the new 2017 format with PackageReference rather than the packages.config.
The overall solution has around 60+ projects so…

PatrickNolan
- 1,671
- 2
- 20
- 40
-3
votes
2 answers
Visual Studio project
I have a .sproj file made in Visual Studio (but maybe not. I don't know it for sure)...
I have Visual Studio Professional 2015, but I can't open it with it... I tried to google it, and I also tried to find it in the project GUID how to open it, but…

Mike
- 7
- 1
- 5
-4
votes
3 answers
Is there a problem with my references(paths) in .csproj
Because I have no programming skills a developer developed a website for me in VS2010. To become independent, I recently switched over to the latest (16.8.4) VS2019 Community.
Now I want to remove version VS2010, but when I do so, version VS2019…

Veng
- 23
- 6
-4
votes
1 answer
Work with C# Project and Solution programmatically
I am looking for approach add existing C# Project (.csproj) into solution (.sln) programmatically on C#. Will be good if posible escape use “illegal” way like parsing and edit xml document.
At the end of work, result should be like adding existing…

user6212917
- 43
- 6