I am configuring my app to have different targets like Staging and Production so I can switch configuration on one go from staging to production and visa versa.I created different targets and ...
I have a C# library that I want to publish on Nuget. Currently it only builds if I target net8.0-windows because it has <UseWindowsForms>true</UseWindowsForms>.However, it uses Windows ...
Part of the control having TextBox as the base classpublic override string Text{ get => _labelText; set // <===== { _labelText = value!; Invalidate(); }}I ...
I have a class library targetting both net481 and net8.0I installed visual studio 2022 on the agent server in order to build the net 8.0 version of the project.Now i get following error(s):CSC : ...
I changed a few libraries to multi target net481;net8.0. This all builds perfectly on my local visual studio, also no runtime errors.However when building this through our on prem team foundation ...
I have a C# solution with different projects and TargetFrameworks.Library (net48 only)Library.Core (net8.0 only)MultiTargetLibrary1 (net48 and net8.0-windows multitarget <TargetFrameworks>...
Is there a proper way to enable Unit-Testing for .NET MAUI (class library) Projects,that actually implement platform specific code (multi-targeting)?In our case we have a .NET MAUI application, ...
I'm unable to use MSBuild tasks from referenced NuGet packages in the outer build of a multi-targeting project. The tasks run fine in the inner build (DispatchToInnerBuilds). I need to set some ...
I have a project which is targeting both net472 and netstandard2.0 and this has conditional package references and conditional code.If I compile this locally completes with no errors and also if I ...
I'm testing with xunit on multiple frameworks (.Net 8 & .Net Core 3.1). The problem is that it keeps auto-generating this GlobalUsings file in my obj folder:// <auto-generated/>global ...
I have a library that targets multiple frameworks, one of which is .Net 8 and one of which is .Net Standard 2.1. Some functions aren't included in the older framework, so I write my own version for it....
We're trying to gradually transition projects from .NET 4x to .NET 8.We've got some dependencies that are windows-only. So, to target newer .net versions we have to use the net8.0-windows target ...
I have a .net6 sdk project that I need to upgrade to .net8 for some new functionality. It has some shared project libraries with other projects that are still .net6.Project A includes Project B which ...
Compatibility Issues with .net framework Nuget codeWe have an WEB API application which is written in VB.Net and running on .net framework 4.6.1.The goal is to rewrite this into .Net 8 with c# and ...
I'm working with a solution containing over 50 projects targeting both .NET Framework 4.8 and .NET 7 (Windows only). I've encountered an issue where the compiler provides syntax suggestions that are ...