csproj Questions

22

Solved

I have just updated all my nuget packages for my solution (dotnet core 1.1 project). I am now getting the following warnings and I don't really know what they mean. Update: I am still getting war...
Rambort asked 10/3, 2017 at 3:15

2

Solved

I have source code of Entlib 5.0 and I need sign all assemblies using my own key (snk file). The easiest way would be to open the EnterpriseLibrary.2010 solution file in Visual Studio 2010 and for...

2

Solved

How can i exclude specific target framework from nuspec (NuGet package) generation? This is my csproj: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFrameworks...
Playboy asked 9/10, 2021 at 17:29

7

I'm trying to use PhantomJS NuGet package in .NET core csproj application. But I think it is not possible using new PackageReference syntax for NuGet. When I reference the PhantomJS package like ...
Patio asked 17/3, 2017 at 16:34

0

I have a web project that I'm trying to convert to Microsoft.NET.Sdk.Web. When I make the change to the .csproj file, though, it seems to force it to be interpreted as a <PackageReference>-ba...
Sendal asked 3/11, 2022 at 5:8

12

Solved

When attempting to add back existing projects to a Visual Studio 2015 solution, VS gives the following error message. I have verified I have not already added a reference to the project I am trying...
Sullivan asked 4/12, 2015 at 16:26

2

Solved

I have multiple assemblies which include unit tests for a single .NET Standard 2.0 project. To thoroughly test my project I want the internal classes to be visible to both assemblies. Here is the p...
Parados asked 19/9, 2022 at 14:41

1

What is Designer for in .csproj? I found this post, but the links to some kind of a documentation are broken there, so I am not able to read what this is. Could someone provide a definition for t...
Cancroid asked 15/1, 2020 at 15:20

1

Solved

I upgraded a project from .NET Framework 4.7.2 to .NET 6. When I ran the program in the Visual Studio debugger, an unexpected argument (call it foo) was passed to Program.Main. Where did foo come f...
Augite asked 26/8, 2022 at 11:2

3

I can't find any option or command to make a file or folder to be excluded from my visual studio project. (csproj, jsproj ... ) There is the option to include files and folders in the Solution Exp...

2

Solved

I want to exclude a test project from code coverage, I do see equivalent of same in .Net core 3.1 is adding below line of code in csproj file <ItemGroup> <AssemblyAttribute Include="...
Spacial asked 28/4, 2021 at 10:27

1

I have a project which has separate client and server folders and my goal is to include client files during the server's publish process. The folder structure looks like this |- server | |- src | |...
Georas asked 24/8, 2020 at 13:16

3

Solved

I have a series of properties I need to set in ~15 projects. Is there a way to put these properties in a single file and have all the project files reference the one file using some sort of import ...
Hyetal asked 22/2, 2012 at 18:27

1

Is there a way to ignore all warnings of a nuget package by using the <NoWarn></NoWarn> tag in csproj file?
Togs asked 7/7, 2022 at 0:26

1

I created a Source Generator to extend (partial) classes which fulfill certain criteria. To check and view the generated code I enabled the emission of these files by adding the following to my pro...
Hexose asked 15/9, 2021 at 13:28

3

Solved

I update nuget packages from 2.2.x to 3.1.0 on my local feed. Then, out build machine try to build projects, but: Project.csproj(0,0): Error NU1102: Unable to find package Microsoft.NETCore.App.Ho...
Symbolize asked 13/1, 2020 at 13:15

1

Solved

We recently ran the csproj migration tool on our solution with 156 projects: dotnet tool install --global Project2015To2017.Migrate2019.Tool This worked very well although we had to do a few modif...
Alcyone asked 28/4, 2022 at 16:37

9

Solved

I'm frequently adding a lot of content files (mostly images and js) to my ASP.NET project. I'm using VS publish system, and on publish, new files are not published until I include them in the proje...
Unearned asked 31/3, 2010 at 7:23

1

Solved

Disclaimer: This is a .Net Framework specific problem, that doesn't happen in .Net Core. I am currently wokring on a project, that works as an AddIn of a larger project. I'd like to set the output ...
Remnant asked 11/11, 2020 at 16:58

1

Looking at my .csproj file, the image resources are inside <ItemGroup> tags. <ItemGroup> <Resource Include="2b.png" /> <Resource Include="Resources\foo1.png" /> <Reso...
Moisesmoishe asked 19/8, 2016 at 14:5

10

You have a large Visual Studio Solution with dozens of project files in it. How would you verify that all the projects follow certain rules in their property settings, and enforce these rules if a ...
Ethbun asked 3/10, 2015 at 23:52

1

Solved

I have an old project in non-SDK-style format generated by Visual Studio. It contains a post-build event in which $(ProjectDir) and $(TargetDir) are used. I am currently transforming the project in...
Trident asked 10/2, 2022 at 10:9

16

Solved

I've checked out a branch of C# code from source control. It contains maybe 50 projects in various folders. There's no existing .sln file to be found. I intended to create a blank solution to add...
Spadiceous asked 11/12, 2009 at 21:39

0

I have a class library in an SDK style project. It targets several frameworks, e.g.: <TargetFrameworks>net48;netcoreapp3.1;net5.0-windows;net6.0-windows</TargetFrameworks> I have a tar...
Fazio asked 7/2, 2022 at 8:31

2

I'm confused about the relationship between RuntimeIdentifier and PlatformTarget in .NET 5. My .NET 5 C# project runs and publishes fine, but PlatformTarget is 'AnyCPU' and RuntimeIdentifier is 'wi...
Oleta asked 18/8, 2021 at 2:7

© 2022 - 2024 — McMap. All rights reserved.