Questions tagged [csproj]

A file with the 'csproj' file extension is a Visual Studio .NET C# Project file.

1301 questions
0
votes
1 answer

Copying a file in .NET Core .csproj file

I created a new .NET Class Library project in .NET Core on Mac OS X. During the project build, I'd like to copy a file into the debug directory. How do I add this to the .csproj file? .NET Command Line Tools (1.0.1) Product Information: Version: …
user189198
0
votes
1 answer

Reducing Package Dependencies in .net core/standard

I'm trying to upgrade some libraries I've built in VS2015/.net core to VS2017. While the project.json > *.csproj conversion went fairly well, I'm having troubles trying to make my library(ies) not depend on the full framework but only on the…
CheloXL
  • 167
  • 2
  • 9
0
votes
1 answer

Conditional conditional symbol definition in a .csproj file

I am an experienced C# developer, but a complete beginner when it comes to MSBuild, and now I have a .csproj file containing the following XML snippet:
user4649737
0
votes
1 answer

csproj file settings for several build projects

I have this solution structute: Solution.sln |--WebUI.csproj (has Core.csproj as dependency) |--Core.csproj |--Tests |--UnitTests |--WebUI.UnitTest.csproj (has Core.csproj and WebUI.csproj as dependencies) …
0
votes
1 answer

All references in VS C# project could not be found

I have an issue with building a project. The problem is that all of references in a project are with yellow triangle and warn me that "reference could not be found". I tried to delete and create reference, but it didn't help. Framework set to…
Nikolay Pryahin
  • 377
  • 5
  • 19
0
votes
1 answer

TeamCity changing the hintpath in csproj files

TeamCity is changing the hintpath attribute for certain nuget packages in my csproj files. Because of this it is restoring the wrong version for the specific nuget package and I am getting build errors on the CI server. Everything works fine…
Carson
  • 1,169
  • 13
  • 36
0
votes
2 answers

How to generate a file with version control information (TFS) during build

I'm tired of not knowing what builds web application is built from when an issue is presented to me by QA. My proposed solution is to generate some static content as part of the build process that has useful information in it. Somebody could…
jpierson
  • 16,435
  • 14
  • 105
  • 149
0
votes
1 answer

how to covert an .xproj file into .csproj file?

I am trying to build repository on linux/mono (autofac project). It contain .xproj file, but I am unable to build it with xbuild. How to convert xproj into .csproj ? (If there is no any tool, then i will recreate csproj from nothing or from older…
0
votes
2 answers

TFS: How to validate if every file is checked-in?

We are working on several ASP.NET MVC C# projects within Visual Studio 2015 and Team Foundation Server 2013. Sometimes the NuGet upgrade process is a mess and some of the replaced files (mostly *.png, *.gif, *.ttf) have not been checked-in properly.…
0
votes
0 answers

How to restore "app.config" and "_.csproj" files after "File.Delete()" command?

Coding in C# using Visual Studio 2013, My program accidentally deleted: app.config projectName.csproj Now, I cannot run the program. Any ideas how to fix the damage?
Tango_Chaser
  • 319
  • 1
  • 3
  • 13
0
votes
2 answers

Visual Studio: stop from modifying CSPROJ and custom includes

I have successfully included all my project files by putting these lines in my .csproj file:
Airistotal
  • 95
  • 8
0
votes
2 answers

I want to create ChooseElement for .csproj with MSBuild How?

I want to create something like below for creating .csproj file programmatically, I use Namespace: Microsoft.Build.Construction Assembly: Microsoft.Build (in Microsoft.Build.dll) for example :
0
votes
1 answer

remove corrupt csproj file and get copy off of a remote branch

I did a git pull and came across a bunch of these inside of my project .csproj file. <<<<<<< HEAD ======= >>>>>>> 298a8db9b1cc88afda040414503dbc9d753cfd6a It seems like it would be easiest to delete my file take that file off the remote…
Winnemucca
  • 3,309
  • 11
  • 37
  • 66
0
votes
1 answer

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?
Mrchief
  • 75,126
  • 20
  • 142
  • 189
0
votes
0 answers

Missing csproj file - Recreate/regenerate one

I took over an ASP.Net application from a co-worker. It is not MVC; it is a web pages application. There is no *.csproj file in the application at all. How can I create one? The solution has a line like this: Project("{guid}") = "AdminSite", ".",…
Paul
  • 5,700
  • 5
  • 43
  • 67