csproj Questions
11
Solved
I am new to Docker. I created a Web API using ASP.Net Core using Visual Studio 2019 as well as in VS Code. It works fine. Then I added docker support and added Dockerfile with default values.
When ...
Strawboard asked 3/4, 2021 at 17:22
27
Solved
All of a sudden, I am getting the following errors for 3 projects in a solution:
Error NU1105 Unable to find project information for 'C:\code\example\src\libs\example.I18n\example.I18n.csproj'.
Th...
Chiton asked 7/12, 2017 at 12:47
6
Solved
I have a Visual Studio (Community 2013) solution with many c# projects on my pc and I've just upgraded to Windows 10 from 7. The project uses .Net Framework 4.0 Client Profile. On win7 everything w...
Stockbroker asked 6/9, 2015 at 16:8
3
Solved
Is it possible to create an SDK-style .NET Framework project in Visual Studio (to be more specific I use the latest VS2019)? Or does it still require manual manipulations?
<Project Sdk="Mic...
Fustic asked 23/7, 2020 at 13:27
3
The recently-released .NET tooling seem to have support for embedding C# in PDBs, which should improve the experience of stepping into third-party, etc. Running csc /?, I can clearly see the /embed...
3
Solved
I would like to create a new WinUI 3 desktop application using .NET 8. After I initialze the project in Visual Studio, the project is on .NET 6. I change the .csproj file's TargetFramework from net...
17
I can't run my unit tests.
I have the next error:
Your project does not reference ".NETFramework,Version=v4.6.2"
framework. Add a reference to ".NETFramework,Version=v4.6.2" in the
"TargetFra...
Harriman asked 16/10, 2018 at 10:49
4
Solved
While I found this post regarding retrieving a custom attribute on an assembly, I am unsure on how to add a custom attribute to an assembly in .NET Core 1.1. In .NET Framework, I would have done so...
2
Solved
In my .net core application, I would like to have my partial files put under a given file like it was with a .net framework application using the tag DependentUpon in the csproj.
As shown in a pic...
2
One of the biggest hurdles when migrating from .NET Framework to .NET 5+ is having to convert all csproj's to the new SDK-style format. There is no tool to automate this, it has to be done manually...
Hominoid asked 17/1, 2023 at 21:44
8
Solved
I am getting this error when I try to open the solution file of my project. The solution is 2012 file (checked using notepad).
If I click on Ok, The solution opens up except for one csproject wh...
Sholom asked 10/10, 2014 at 10:12
1
I am trying to use Text Transform templates (a feature of Visual Studio) with GitHub Actions. I am specifically using the Windows runner, which has Visual Studio 2022 Enterprise installed, so the d...
Misfit asked 17/6, 2022 at 23:20
14
Solved
When I am compiling my .csproj file using .NET Framework 4.0 MSBUILD.EXE file, I am getting an error: "lable01" not found in the current context of "website01.csproj".
Actually,...
4
Solved
I Nugot SpreadsheetLight. To subsequently use it, I need to add the following usings:
using DocumentFormat.OpenXml;
using DocumentFormat.OpenXml.Spreadsheet;
using SpreadsheetLight;
For the firs...
Twirl asked 22/3, 2016 at 21:31
2
I was looking for the correct way to ensure appsettings.json is copied to the bin directory when building my project.
This article recommends using "none update"
<ItemGroup>
<None Upda...
Ventricle asked 28/10, 2019 at 17:37
2
Solved
MSBuild is strange
I already tried this and another answer and I also tried this one
After that, I changed <IntermediateOutputPath> and <BaseIntermediateOutputPath> and <OutputPath&g...
Python asked 22/8, 2020 at 13:46
5
Solved
In the process of cleaning up the folder/file structure on a project I inherited, I'm running into a problem with organizing the required external libraries. I want to keep them in their own .\dll\...
7
Solved
In a C# project I try to use relative paths for "Start external program" and for "Working directory".
I tried relative paths starting with ../ and relative paths with $(SolutionDir) / $(ProjectD...
Cageling asked 14/8, 2019 at 8:40
3
Solved
With .net core (project.json) I used to switch between nuget packages and source code by adding the path to source code to the projects field in the global.json. After I did that it would add all t...
Camphor asked 13/3, 2017 at 21:34
3
I have used the try-convert tool to convert my projects from .NET Framework to .NET 5.0
When inspecting the converted *.csproj files for projects that are targeting .net50-windows I noticed the ele...
14
Solved
I am using .NET Core 2.0 on Arch Linux / Visual Studio Code and am trying to get EF tools to work, but I keep getting the error:
cannot find command dotnet ef
I've just about looked everywh...
Vomiturition asked 3/7, 2019 at 2:22
4
Solved
I am totally new to the functions and conditions in .csproj files so any and all help is appreciated.
What I want to do is check for a specific compiler directive in the current configuration. An ...
Stambaugh asked 18/10, 2012 at 14:32
5
Solved
UPDATES
Repaired .NET Core 2.1 installed version 2.2 as well
uninstalled VS 2019 and re installed
it does work on another machine with VS 2017 & VS 2019 installed (same versions)
UPDATES
I...
Annelid asked 9/4, 2019 at 9:28
1
Solved
During my work on a Roslyn analyzer I have received an alert from Roslyn analyzer that checks the correct usage of Roslyn API.
RS1036: Specify analyzer banned API enforcement setting.
A project co...
Undue asked 14/3, 2023 at 13:47
3
Solved
I'm new to Visual Studio Code. I want to define the output directory in my csproj. I don't know where to change in Visual Studio Code the destination folder to locate the dll files generated.
Detergent asked 26/10, 2017 at 16:43
1 Next >
© 2022 - 2024 — McMap. All rights reserved.