A file with the 'csproj' file extension is a Visual Studio .NET C# Project file.
Questions tagged [csproj]
1301 questions
0
votes
1 answer
Nuget packaging in VS2017 csproj project
I have following project structure with 3 Nuget dependencies:
net45;net46
...

unickq
- 1,497
- 12
- 18
0
votes
1 answer
Tool for upgrading project to VS2017
There are descriptions on Web how to migrate your projects in VS2015 or earlier to new VS2017 template.
But is there a tool that has already automated that?

Krzysztof Morcinek
- 1,011
- 13
- 42
0
votes
1 answer
How to build two binaries .net core 2 console app
I am new in .Net core and c sharp. i would like to build two binaries in the same namespace. It's two console apps, one server and one client. I'd like to share some objects like "Scores" and think like that. Actually I have created two apps (via…

Oscar
- 1,071
- 13
- 26
0
votes
0 answers
Self Contained EXE not finding correct path on OS X
So I've made a self-contained release of a project with Visual Studio Code. The EXE is working on ubuntu and windows, but can't get it to work on os-x.
I'm using a simple data.json to store some data. The error that occurs on the os-x release, is…

Jesper
- 2,044
- 3
- 21
- 50
0
votes
1 answer
MSBuild TeamCity Windows Service Output
I am using TeamCity with Visual Studio. Build artifacts are staged to a file share in the _PublishedWebsites folder for web projects. I have a PowerShell script that deploys those web applications. Works great!
I needed to create a Windows Service…

c0D3l0g1c
- 3,020
- 5
- 33
- 71
0
votes
0 answers
Visual studio .csproj file looks different in notepad than in the VS
I have strange situation and I am wondering the following thing:
In Visual Studio 2015 Enterprise, Unload project, Edit .csproj file it have at least 2000 lines of configuration.
But when I open the same file in Notepad ++ it has only 1000…

mihkov
- 1,171
- 13
- 37
0
votes
0 answers
Publish a netcore/netstandard library
I have a library referencing some nugets, which i wish to publish with all the dependencies. But when I do that via the publish command in VS, the output dir contains the nupkg file, instead the binaries. I've found that I can use…

aikixd
- 506
- 5
- 16
0
votes
1 answer
dotnet build does not create `csproj.metaproj` files needed for Travis CI
I have just started to use Travis CI to build a project on git hub but according to Travis build output log Travis seems to be looking for csproj.metaproj which are not being created. How do I either:
Get dotnet build to create the csproj.metaproj…

Dib
- 2,001
- 2
- 29
- 45
0
votes
1 answer
NuGet Automatic Restore And Installing NuGets
I recently successfully switched all of our projects over to automatic NuGet restore. To do this I followed this guide. Everything worked great, I was able to delete my /packages folder and restore to my heart's content.
One of the steps in that…

hvaughan3
- 10,955
- 5
- 56
- 76
0
votes
0 answers
Getting "Cannot resolve assembly 'Xamarin.iOS.dll'" in UWP project...?
I've created a working iOS app with Visual Studio 2017 using Xamarin.Forms and a PCL. Now I'm trying to create the UWP app. I've followed the steps here, and when I build, I'm getting the error:
Cannot resolve Assembly or Metadata file…

jbyrd
- 5,287
- 7
- 52
- 86
0
votes
1 answer
What is NuGet.CommandLine packagerererence good for?
In *.csproj of my aspnetcore app I see:
What it is good for?
If my environment hadn't NuGet CLI I wouldn't be able to restore this package. When I have it I don't need the package,…

Liero
- 25,216
- 29
- 151
- 297
0
votes
1 answer
No dotnet-cli excutable matched when placing in & tags of .csproj file
I am migrating my web application from .Net Core 1.1 to 2.0, and has tried to make it more compatible by ensuring it works both under 1.1 and 2.0.
When it comes to making the project packages automatically adapt to the current switched version, I…

Vigilans
- 98
- 1
- 5
0
votes
0 answers
Unable to Build/Run Multiple Frameworks Using VS 2017's Csproj
I'm using the JavaScript Services Angular infrastructure to build an Angular project that utilizes Entity Framework. I was able to produce a similar project in the past by modifying the project.json file but project settings are now set in the…

tlcooper
- 1
- 1
- 2
0
votes
1 answer
How can I set custom MsBuild property from VSIX without writing into .csproj file?
I create a VSIX extension for Visual Studio, which adds a custom drop-down menu. I need the value from this menu to apply to the .csproj property of the file without changing the file itself, like the configuration menu. For…

R. Savelyev
- 165
- 1
- 11
0
votes
1 answer
save integration test mapping of appsettings.json on moving from xproj,porject.json to csproj
I am trying to migrate my sln from xproj+project.json to csproj.
I had on my project.json for my integration test project:
"buildOptions": {
"copyToOutput": {
"mappings": {
"appsettings.json": "../../src/WebApp/appsettings.json",
…

arielorvits
- 5,235
- 8
- 36
- 61