Questions tagged [csproj]

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

1301 questions
0
votes
1 answer

csproj is Missing Root Element

I am trying to open a project I downloaded from Github, but I am told that the csproj's root element is missing. I tried following the instructions from this link…
Lotzi11
  • 477
  • 1
  • 13
  • 26
0
votes
1 answer

ms build dynamic resource naming

I want to add some files to embedded resourses at compile time with special naming. For this I wrote in .csproj
Arheus
  • 172
  • 7
0
votes
2 answers

Configuring build of c# project to create various batch files

I am fairly new to C# and I working on one C# project/desktop app. This application can be called with various arguments. For instance: programName.exe -m arg1 programName.exe -m arg2 programName.exe -m arg3 I understand that everything I need to…
Antea
  • 177
  • 1
  • 4
  • 10
0
votes
1 answer

ClickOnce deployment and duplicated dependency -entry

So I'm totally fumbled by this. Used exactly the same methods before, but this time I have a single assembly that is referenced from a nuget packages -directory, has copy local set to true, and is a strong name reference. If I then run publish from…
bobblez
  • 1,340
  • 20
  • 35
0
votes
0 answers

Observing a question mark sign (?) on every file of a c# project after i reload the project

Whenever I unload and reload a c# project file, i am observing '?' sign on every file of the project in VS2013 Update 5 (Ultimate Version). Even though it does not hurt me in any way as i am able to build the project in normal way, it does not look…
Jeet
  • 9
  • 2
0
votes
1 answer

Visual Studio - How to make sure all .cs files are included?

My issue is the following: Sometimes when I'm adding a new file to the a project, because of all the merges and shelving/unshelving, it's no longer included in the .csproj. It's pretty hard to figure out that the file isn't included in a project,…
Darkalfx
  • 259
  • 3
  • 12
0
votes
2 answers

csproj from VS2008 fail to compile with mono xbuild

I use Mono 2.6.4 compiled from source on CentOS to compile a VS2008 project in C#. Some csproj compile, but this one doesn't, here is the output of xbuild /t:detailed : /opt/mono-2.6.4/lib/mono/2.0/Microsoft.CSharp.targets: error : Error executing…
hokkos
  • 500
  • 6
  • 17
0
votes
1 answer

Using wildcards in csproj to include whole folders in SharePoint wsp package

I just spend the last 4 or so hours trying to figure why when compiling a SharePoint deployed package (wsp file) files that were specified via wildcards were not always getting included in the package. The "always" turned out to be "never on a clean…
Dylan Nicholson
  • 1,235
  • 14
  • 20
0
votes
1 answer

C# Library project being used in multiple projects

I have a library project used in multiple applications. Let's call this Library1. Library1 has its ownNuGet package dependencies. When I setup a project, ProjectA, using Library1, it specified a HintPath for each .dll that Library1 depended on.…
snotyak
  • 3,709
  • 6
  • 35
  • 52
0
votes
1 answer

Visual Studio Code 0.2.0 and opening .snl project

I have been using Visual Studio Code a little bit with some experimental Unity3D projects. Now I got an insiders email about the 0.2.0 update and decided to give it a go. After the update VSCode start up nicely, butit runs into errors when trying to…
Quido3
  • 131
  • 1
  • 10
0
votes
1 answer

Mixed Dev Environment: Automate Visual Studio .csproj updates from Git/TFS?

I'm hoping you can help me solve this development workflow annoyance. I'm a front-end dev working on a project where most of the other developers use MS Visual Studio, and I don't. We've got TFS set up, and I'm able to check out code and make edits…
Alex W
  • 719
  • 7
  • 14
0
votes
0 answers

How to add embeded resources dynamically on CI server to csproj file if not there?

Is there a way to check if a resource (example given below) is added in a csproj file? If not, add it properly to the csproj?
justyy
  • 5,831
  • 4
  • 40
  • 73
0
votes
0 answers

Can I make a project reference use a reference path instead, if the project output doesn't exist?

I tried searching stackoverflow.com and google for any answers, but couldn't find anything with the same situation I have. I am working on a solution from source control, where I am only making changes to one project in the solution. The solution…
Zack
  • 2,789
  • 33
  • 60
0
votes
2 answers

How do I set up the MSBuild script to use the outdirectory's set in the csproj files while building the entire solution?

I'm not sure how I can get the MSBuild script to use the outputpath, outputdirectory values from the CSproj files. I've seen examples where I set the outputpath in the MSscript but that dumps the all the output in one big folder. I want the…
0
votes
2 answers

Add syntactic checking (Intellisens, Resharper, etc) to .cs file without compiling them

I have a bunch of .cs files that represent test cases for certain manipulations using the Roslyn API. Since they are supposed to have valid compile time syntax, I would like to have Intellisense, Resharper and other pre-compile time checks available…