Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
29 views

I have a C# project with few dependencies, and a list of build environment properties (dev, staging, prod). I am trying to build the project multiple times per env in a separate folder and with a ...
MisterT's user avatar
  • 11
4 votes
2 answers
101 views

I have an .sln referencing a single .csproj. Inside the .csproj I download static dependencies into ASP.NET's wwwroot: <Target Name="DownloadContentFiles" BeforeTargets="Restore&...
Benni's user avatar
  • 1,102
0 votes
2 answers
112 views

Problem Summary I have a critical issue with my SDK-Style generated VSTO Outlook add-in when deployed via WiX MSI installer. The same VSTO files work perfectly when installed directly (double-click ....
Mirec J.'s user avatar
  • 129
1 vote
0 answers
34 views

I hope there is a simple answer to my question. I have updated a .NET 4.8 project to .NET 8.0. Now my project file is diffrent. That's clear. But how can I start my target now? In .NET 4.8 I had one ...
CPipe's user avatar
  • 11
0 votes
1 answer
66 views

My .NET project targets both .NET 6 and .NET 8, in my csproj file I have: <PropertyGroup> <TargetFrameworks>net8.0;net6.0</TargetFrameworks> ... </PropertyGroup> Then, ...
mguijarr's user avatar
  • 8,030
103 votes
28 answers
114k views

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'. The ...
Paolo B's user avatar
  • 3,464
119 votes
14 answers
128k views

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 everywhere and ...
Wasiim Ouro-sama's user avatar
-1 votes
1 answer
43 views

Since I put my App.razor's @code into an App.razor.cs file, Visual Studio stuffed this crap into my .csproj file. Removing it gives these compile errors: Here's the contents App.razor, just in case: ...
hamstar's user avatar
  • 345
189 votes
6 answers
127k views

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 figure ...
chyyran's user avatar
  • 2,686
3 votes
5 answers
9k views

Using the upgrade-assistant provided by MS, i'm trying to upgrade my projects from .NET 6 to 8. I have noticed this being inserted at the top of my project files : <ImplicitUsings>enabled</...
Max Alexander Hanna's user avatar
1 vote
1 answer
4k views

I have an application that is an addin to another larger application developed by another company (i.e. I have no control over the parent application). The parent application is updating to .NET 8.0 ...
sfaust's user avatar
  • 2,465
0 votes
0 answers
47 views

Problem While publishing my ASP.NET MVC project using Visual Studio 2022, I ran into errors. Similar errors appeared for: Newtonsoft.Json.xml System.Web.Helpers.xml System.Net.Http.Formatting.xml ...
Deepak Yadav's user avatar
112 votes
4 answers
77k views

When .NET Core still used the project.json format, you could build a class library targeting multiple frameworks (e.g. net451, netcoreapp1.0). Now that the official project format is csproj using ...
Gigi's user avatar
  • 29.7k
108 votes
3 answers
46k views

Where do I put InternalsVisibleTo from AssemblyInfo in the new Visual Studio 2017 .csproj project file?
Luka's user avatar
  • 4,211
0 votes
1 answer
1k views

I am currently working with VSCode on Windows. I have one folder opened in my workspace which contains several projects. Since we build the projects for net8.0 AND net481, I use the setting "...
Kjara's user avatar
  • 2,956
16 votes
3 answers
15k views

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 part ...
Timo's user avatar
  • 163
5 votes
1 answer
2k views

I use a third-party nuget package that contains a content file that appears in my project which I'd like to copy to my output folder. Said and done. Unfortunately what the project file then does is ...
Dee J. Doena's user avatar
  • 1,867
58 votes
3 answers
43k views

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="...
isxaker's user avatar
  • 9,616
0 votes
1 answer
268 views

How can I set BuildInParallel="false" in my .csproj? In the following example, .csproj has two build targets for net6.0 and net8.0. In default they are run in parallel build processes in ...
Livius's user avatar
  • 483
18 votes
3 answers
7k views

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 ...
Cleve's user avatar
  • 1,463
0 votes
1 answer
451 views

I'm trying to add a custom build time attribute to my assembly following the post here: https://blog.jermdavis.dev/posts/2023/build-metadata-dotnet I've added the following class file for the ...
CuppM's user avatar
  • 1,698
217 votes
8 answers
106k views

How is <None Include="C:\foo.bar" /> different from <Content Include="C:\foo.bar" /> ?
Emmett's user avatar
  • 14.4k
1 vote
1 answer
49 views

I have a csproj with some folders with code from different clients. When i publish my app i get something like this: Client1Folder Client2Folder Client3Folder Client3Folder2 SomeCommonFilesAndFolders ...
TSDrake's user avatar
  • 189
0 votes
0 answers
90 views

I have Web Api project as back-end and Blazor WebAssembly as front-end. I want copy Blazor publish files to Web Api publish subdirectory wwwroot and then zip all files. I added post build instructions ...
max's user avatar
  • 77
0 votes
1 answer
929 views

I’m currently learning C# through a beginner course provided by Microsoft. I followed the instructor's steps precisely, but I keep encountering an error. Here are the steps I followed: Created a new ...
MomoCodez 's user avatar

1
2 3 4 5
28