Questions tagged [multitargeting]
115 questions
0
votes
1 answer
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) $(INCLUDES) -c $< -o $@
echo "Files compiled"
but with…
0
votes
1 answer
Call script only once before all builds in a multi-targeting project
I'm having a multiple targeting project using a script that generates classes out of a XSD. That should only be done once - for all build targets.
I found that SO-question but this solution does not work.
My filtered csproj contains these…

Sebastian Schumann
- 3,204
- 19
- 37
0
votes
1 answer
How to fix net45 failing to load in a multi-targeted project?
I cloned a repository from GIT.hub and I'm having a hard time building this project.
Because it's a multi-target but it fails on net45, as shown below.
I've searched and applied pretty much all solutions to install the .NET 4.5 and I can create…

Paulo Santos
- 11,285
- 4
- 39
- 65
0
votes
0 answers
C# multi targeting project: skip generating binaries for one of frameworks
I have a solution containing a number of C# projects which builds for both .net framework 4.7.2 and net 7. Most of the projects target both frameworks, but some UI parts are net 4 only. All projects, including net 4-only ones are in a modern…

ElDog
- 1,230
- 1
- 10
- 21
0
votes
0 answers
Issue with building multitargeting framework project using docker (fairly complex scenario)
I've tried searching around for hours and could not find a solution to this problem.
Suppose I have 1 project (A) targeting netcoreapp3.1
That project references multitargeting project (B) which targets net462 and netcoreapp3.1
When building the…

Hopeless
- 4,397
- 5
- 37
- 64
0
votes
0 answers
How to choose to specify which mult-target project to use when referencing one?
I have a C# Visual Studio Solution.
I have a multi-targeted project in one of the solutions, it's targeting both .net4.8 and .netstandard2.0. Let's call it Project A.
I have another project that's targeting .NET 4.8 that's referencing Project A.…

Shao Skywalker
- 21
- 2
0
votes
0 answers
Net7.0 project referencing Net7.0-windows package
I have a Net7.0 project that can run on Windows or Linux.
I'd like it to reference a Net7.0-windows nuget package, and make the decision on whether to use the assembly/types it contains at runtime: e.g.
if…

Rob
- 4,327
- 6
- 29
- 55
0
votes
0 answers
ORACLE APEX - How can I insert form data into multiple tables, in my case- one table is storing text data while other table is for BLOB?
I have a form to target 2 tables - one for text data, 2nd for documents (BLOB)
for stroing text data eg. Name, address details etc. - I am using process which executes PL/SQL procedure on passed page item values (in procedure i am calling next val…
0
votes
0 answers
project.assets.json file references 2 different versions of a package for the same framework
I have a project that is multi-targeted net472 & net6.0-windows. For net6.0-windows there is a transient package reference with 2 different versions.
4.0.0
MyProject -> SSH.NET/2016.1.0 -> System.Net.NameResolution/4.0.0
4.3.0
MyProject ->…

Dan
- 1
- 1
0
votes
0 answers
multi target build dependency issues
I have a solution which is to be built in net6.0 and netstandard2.0. I have been using the command
dotnet publish /p:Configuration=Release -o -v detailed --framework net6.0
And the same solution is built in…

Bala
- 223
- 1
- 4
- 16
0
votes
2 answers
Multitarget UWP usercontrol for WinUI and UWP
I would like to multitarget my UserControl for both UWP and WinUI.
I found this link: https://nicksnettravels.builttoroam.com/upgrade-uwp-to-winui/ but it is really hard to migrate all the features because my project is a bit bigger and also sorting…

FrozenAssassine
- 1,392
- 1
- 7
- 16
0
votes
1 answer
CS0234 "The Type or namespace name" error with multi-target project with #if
I'm making a private nuget-package library with support for dependency injection. If the project using this nuget-package is running .net6 or later, I wish for it to be a .Net6.0 library and to use Microsoft dependency injection. Otherwise I wish…

Henrik
- 23
- 5
0
votes
1 answer
Unable to build a multi-targeting .NET library for net20 and net35 after switching to Visual Studio 2022
Recently I've moved to using Visual Studio 2022, while uninstalling my previous IDE (Visual Studio 2019). I work on a class library project which uses the multi-targeting feature of the new SDK-style .NET projects. For example:

Ivaylo Slavov
- 8,839
- 12
- 65
- 108
0
votes
0 answers
Visual Studio Installer Project and MultiTarget Framework DLL
When adding the primary output of a multitarget-framework dll (e.g. targets are "net48;net6.0-windows") to a visual studio installer setup folder, how can I select which targetframework should be installed?
EDIT: It seems like it's installing the…

Lumo
- 627
- 6
- 21
0
votes
0 answers
Gaussian Process Classification with Matlab GPML
I am trying to run a GP classification multi-target task with the GPML Matlab library. I used a sum of two covariance functions - the RBF and Linear. However, my results do not fall nicely within the predictive probabilistic range. I suspect it is…