Questions tagged [csproj]

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

1301 questions
0
votes
1 answer

Should I Exclude references to the bin\..project..dll in TFS or Visual Studio ONline Builds?

One of our customers uses Visual Studio Online which is based on capabilities of Team Foundation Server (TFS) We were researching how to do automated Builds and automated Unit Tests using the Visual Studio Online hosted build agent. We are trying to…
CS Lewis
  • 489
  • 8
  • 30
0
votes
1 answer

Assemblies/references not found after publication on Azure

I have an MVC5 Web application (VS2012) which has a reference to a WCF Application. The architecture looks like this: - Business library -- References to DAL - DAL library - WCF application -- References to Ressources -- References to Business --…
madhatterx
  • 53
  • 8
0
votes
1 answer

What is the most standard way to get the latest version of an assembly solution-wide using NuGet?

My company is moving to using NuGet for our internal dependencies for desktop applications. This works fine for versioned imports, but in some cases (like during pre-Beta on a product) we'd like to grab the latest version of the dependency on our…
NextInLine
  • 2,126
  • 14
  • 23
0
votes
1 answer

MSBuild target in csproj do a clean before every build

I have a C# project (vs2013) and for this project, i want to do always a clean solution before the build. Now i can (again and again) choose clean project before building, but this should be possible using a Target tag in the .csproj file. I started…
Dennis
  • 1,810
  • 3
  • 22
  • 42
0
votes
1 answer

How to set compilation option in many projects

I have many projects/solution in my company. I want to simple them configuration. How can I assure every project to have checked "Treat warnings as errors", it is possible? Or force all project to use one styleCop file.
Jacek
  • 11,661
  • 23
  • 69
  • 123
0
votes
1 answer

Using GruntJS to filter which files get deployed

Currently the static resources we use are part of a web project in Visual Studio. There are certain files in the project that we want locally that we don't want being deployed to production. We manage this by using the .csproj file and seeing if a…
Hanna
  • 10,315
  • 11
  • 56
  • 89
0
votes
1 answer

csproj* Cannot save web project

I have an web project using WebAPI 2 with is compile clean and starts with owin. So everything seam to be ok, but if i open the project properties their is always a star next to my project settings tab. I can save it, (File => SaveAll or Ctrl + s)…
Krolock
  • 59
  • 1
  • 5
0
votes
1 answer

Cannot open .csproj-file with Visual Studio C# 2010 Express

I'm trying to open this project (https://github.com/shtejv/ARDrone-Control-.NET) downloaded from the internet but just when I open the project this error appears: "The project type is not supported by this installation." It also shows the solution…
0
votes
2 answers

Using GItHub with Visual Studio Projects (.csproj) including references

Me and my team just started using GitHub for our development. Our project is written within Visual Studio (C#). In our project files we have external references of .dll files that are saved in specific folder for each user for example…
henb3d
  • 3
  • 3
0
votes
1 answer

Setting DefineConstants dynamically via MSBuild import

I have an .msbuild import that defines a property group containing preprocessor definitions, among other things: $(DefineConstants);MY_CONSTANT_VALUE This is ed into both…
greenback
  • 1,506
  • 2
  • 17
  • 29
0
votes
0 answers

Visual Studio: different project folder structure for publishing/editing than the physical one

I'd like to add files to a web csproj that are located under its directory, but in a different directory structure than the physical one. Example physical directory structure: MyProject.csproj Assets Settings.config Now my project needs the…
Piedone
  • 2,693
  • 2
  • 24
  • 43
0
votes
1 answer

PreBuildEvent not reflecting in project dependencies

I have two C# projects, one of them, the library, contains a database file which is modified during PreBuildEvent. Its contents are correctly updated and available in bin\Debug folder of this library project. The problem occurs because in the other…
Marlos
  • 1,927
  • 2
  • 22
  • 44
0
votes
1 answer

Using the same assembly references in csproj with different folder structures

I have a C# project, MyProject.csproj that sits in a solution with the following folder structure and references Dependency.dll: Libs Dependency.dll Projects MyProject MyProject.csproj Thus the reference to Dependency.dll in…
Piedone
  • 2,693
  • 2
  • 24
  • 43
0
votes
1 answer

Adding common reference path in .targets/.user

I would like to place partial path to my references in my .target/.user file. For example MylibraryPath some thing similar to MSBuildToolsPath but my own custom path. Later I would import my .target file into my .csproj and use MylibraryPath as…
RadiumBall
  • 23
  • 6
0
votes
1 answer

How to group source files in VS2013 not using folders on disk

Older VS (using C++) allowed (as far as I can remember) grouping of related sources to sort of groups. Something like Headers group, Sources group etc. Is it possible to group files in such way in VS2013 using C#? Even if it does mean manual edit of…
sharpener
  • 1,383
  • 11
  • 22