Skip to main content

Questions tagged [multitargeting]

The tag has no usage guidance.

0 votes
0 answers
40 views

.Net 8 Project Reference Specify .net Version of Multi-Targeted Transitive Project Dependency

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 ...
lrfalslev's user avatar
0 votes
0 answers
42 views

.Net Multi Targeting the solution Issues

Compatibility Issues with .net framework Nuget code We 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 ...
abhijith r's user avatar
2 votes
3 answers
138 views

Handling C# language version specific suggestions in multi-targeted solutions

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 ...
saastn's user avatar
  • 5,907
0 votes
1 answer
55 views

.NET 8.0 Project fails build Could not load System.Runtime - Reference Assemblies should not be loaded for execution

I have a project that is multi-targeting net8.0-windows and net48. In both configurations it has no warnings or errors. It builds fine in net48, but when I try to build the project in net8.0-windows ...
sfaust's user avatar
  • 2,285
0 votes
0 answers
213 views

Multi-Targeting: Assets file 'project.assets.json' doesn't have a target for 'net6.0'

I am developing a library, which had been previously available under net6.0 and now i need to also provide it for net8.0. When i switched from <TargetFramework>net6.0</TargetFramework> to &...
Canabale's user avatar
  • 294
0 votes
0 answers
110 views

Could not load file or assembly 'System.Net.Http, Version=4.3.4.0,

I've seen so many posts around this, followed them, but I can't figure out my situation so can I ask for help: I have a .Net Framework 4.7.2 Web Form Application that references two multi-targeted ...
Robert Achmann's user avatar
0 votes
1 answer
44 views

Multi-Targeting with Class Libraries containing Resource Dictionaries

Is there any possible way to create a multi-targeted class library containing a ResourceDictionary that for both WinUI 3 and WinUI 2? Has it been tried for WPF? The tutorials I found just approach the ...
Blondie's user avatar
  • 34
0 votes
1 answer
72 views

Pytorch LSTM Multi Target Dimension Error

I've been trying for days to do an LSTM Multi Target without success, for a dataset with the first 8 columns being targets and the other columns features, generating dimension errors. The challenge ...
Kaboom's user avatar
  • 1
1 vote
1 answer
104 views

Is there a way to toggle displayed target framework in VS 2022 Solution Explorer?

I have a multi target C# project that targets .Net Framework 4.8 and .NET 7.0. Some of my source code files are included only for one of the above target frameworks. The Solution Explorer shows the ...
Björn Albowitz's user avatar
0 votes
0 answers
75 views

How to unit test multi-targeting projects that go back to .NET 2.0

I often create tiny compatibility libraries that are multi-targeting projects that support everything from .NET 8.0 back to .NET 2.0. I am totally happy with how that is supported by Visual Studio, ...
Christoph's user avatar
  • 3,572
2 votes
3 answers
1k views

How to dotnet restore a multi-target framework in CI for testing using old version of dotnet?

I have a C# package which currently supports dotnet 8 and I'm trying to modify it to add dotnet 6 and 7 support as well. I've gotten it to build for all versions using dotnet 8 locally on my laptop, ...
Camden Narzt's user avatar
  • 1,921
1 vote
0 answers
77 views

net 7.0: adding reference to multitarget project results in NU1702

I've got a solution with several projects and one of them is multitargetting .NET 7.0 and .NET 4.8. When this project is added a reference to another Blazor WASM project(same solution, through the <...
Luis Abreu's user avatar
  • 4,314
0 votes
0 answers
22 views

Nuget multi-targeting for direct or indirect dependencies

I have a dependency (dep) graph for my app and nugets as below. app (net8.0) -> nugetA (net6.0) <--- target net8.0 as well?! -> nugetB (net8.0, net6.0) What target ...
hIpPy's user avatar
  • 4,954
1 vote
1 answer
163 views

How does Visual Studio picks up the current framework?

I started with a net6.0 project. And decided to provide netstandard2.0 as internal nuget output for the older supported builds. Replaced <TargetFramework>net6.0</TargetFramework> with <...
T.S.'s user avatar
  • 18.9k
1 vote
1 answer
63 views

Makefile: Repeating a rule for different targets

I'm coping with an issue, probably due to my lack of knowledge of makefile possibilities. I'd like to set a rule similar to $(OBJ_DIR)/%.o: %.c @echo "Compiling..."; $(CC) $(CFLAGS) $...
Ignasi Villagrasa's user avatar

15 30 50 per page
1
2 3 4 5
9