csproj Questions

2

Solved

I've recently upgraded a solution from using the old xml format of the csproj files to the new that came after xproj was deprecated. i.e. the format which looks something like this: <Project Sd...
Townspeople asked 15/11, 2017 at 16:24

3

Solved

The new .csproj format includes some significant improvements over the classic files, including tight integration with NuGet package management and significantly less-verbose structure. I want to g...
Creswell asked 20/12, 2017 at 22:36

2

Solved

I got an assembly that builds and unit tests fine on my PC, but fails to test on the build PC. It has been failing for about a month. I've most likely done something wrong. Here is the response I g...
Cassondra asked 3/1, 2022 at 16:1

2

Solved

Is it possible to hide files/folders in .net core csproj without excluding them from build? I have a folder containing generated files which I would rather see they are not visible inside Solution ...
Gildus asked 10/8, 2017 at 12:4

4

Looking to get the following setup going: I'm working on a Blazor app, and with the official css isolation bundler. I'm using Less though, and installed a Less transformer which creates the require...
Seena asked 20/12, 2020 at 2:11

4

Solved

I am using .NET Core to build a cross platform class library. Depending on the operating system that the C# .NET Core project is built for using a .csproj file, I need to copy a native library to t...
Gavette asked 14/4, 2017 at 13:5

2

Solved

I am configuring semantic versioning with GitLab for my dotnet core apps and netstandard 2.0 packages. After reading quite a bit of opinions, some of them contradictory, this is what is clear to m...
Gander asked 9/4, 2019 at 15:10

5

I have a code generator tool that I partially own, and now that csproj files can list multiple Target Frameworks in them and building builds all of them, I am trying to figure out how to make an MS...
Must asked 10/10, 2017 at 20:50

2

I'm using VS 2019 16.9.0 Preview 1.0 and have a project with the following PropertyGroup <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net5.0</TargetFra...
Defluxion asked 16/11, 2020 at 15:53

5

Solved

I recently upgraded to Unity 2019.3.0f6. When I opened one of my c# files, I noticed that UnityEngine.UI wasn't being recognized as a valid namespace. This caused me to get red squiggles whenever I...

2

Solved

I created a C# project using Visual Studio Code. This project contains two .cs files, Addition.cs and Substraction.cs. Both files contain a main() function and both files contain two different prog...
Aurar asked 7/11, 2017 at 7:44

2

Solved

I'm trying to set a different Icon for each build configuration of my C# project (using VS 2010 pro). One config is for a different customer, thus that config should use a different icon. I'm not ...
Fredrika asked 25/5, 2012 at 18:1

3

I can successfully build a WPF application with the new csproj format using the Sdk="Microsoft.Net.Sdk". However, it is a bit of a challenge to publish the said app. The option is definitely not a...
Ropy asked 5/5, 2017 at 16:40

0

I reference an OpenAPI service using the "Connected Services" feature in Visual Studio (2002 Prev 5, but same behavior in VS 2019). This tool is based on NSwag. The docs say that I can ap...
Ant asked 14/10, 2021 at 19:51

6

Solved

VS2017 has so far correctly converted several project.json/.xproj based projects to the new .csproj format. I would also like to use the new .csproj format with older .csproj projects that previou...
Handout asked 7/3, 2017 at 22:39

1

I have an incremental build setup as follows: <ItemGroup> <MyInput Include="$(MyInput)" /> <UpToDateCheckInput Include="@(MyInput)" /> <UpToDateCheckBui...
Thema asked 30/9, 2021 at 18:16

3

So I'm trying to publish a project, but for whatever reason I can't. The very last project that I added still gives me the option to do it, but none of the other projects allow me to do it. The pub...

2

Solved

Here is my project file csproj <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net4.6</TargetFramework> </PropertyGroup> <ItemGroup> &lt...
Dodecasyllable asked 21/2, 2018 at 20:55

2

Solved

I saw some code like this, in a csproj file $([System.DateTime]::UtcNow.ToString(mmff)) to autoincrement the assembly version: <VersionSuffix>2.0.0.$([System.DateTime]::UtcNow.ToString(mmff)...
Hatti asked 12/5, 2021 at 18:42

1

The problem- We can parse a csproj file in some ways, but most of the information is not in the file, but is either by default or affected by other properties. I want to work against csproj files ...
Middleweight asked 17/12, 2018 at 7:0

1

Solved

I have used a dll to my project which gets added to my project file as a COMReference like following <COMReference Include="GENERALCREDITREQUESTMANAGER450Lib"> <Guid>{BDB6DDB...
Curie asked 13/4, 2021 at 8:32

4

Solved

In my VS 2017 project I reference docfx.console package and I want it to be used only when certain condition is met. But the package gets used for all builds. Here is a part of my project. I want...
Kanter asked 2/2, 2018 at 20:17

2

Solved

In my .csproj file I've added the following config: <ItemGroup> <None Include="$(USERPROFILE)\.nuget\packages\microsoft.data.sqlclient.sni\1.0.19235.1\buildTransitive\net46\x64\SNI.d...
Nightwear asked 20/7, 2020 at 8:26

3

Solved

Where do I put InternalsVisibleTo from AssemblyInfo in the new Visual Studio 2017 .csproj project file?
Denadenae asked 15/3, 2017 at 13:7

6

Solved

I'm trying to write a plugin system with .NET Core, and one of my requirements are to be able to distribute the plugin DLL along with its dependencies to the user for install. However, I can't figu...
Breakfront asked 7/5, 2017 at 23:5

© 2022 - 2024 — McMap. All rights reserved.