Questions tagged [multitargeting]

115 questions
4
votes
2 answers

VS 2010 .NET Framework issue w/ an assembly targeting 3.5 complains that it needs later version of .NET framework

I'm having an odd issue with an assembly that is targeting .NET 3.5. When including this assembly via Add References/Browse to DLL - it complains: "MyAssembly.dll", or one of its dependencies, requires a later version of the .NET Framework than the…
Matthew M.
  • 3,422
  • 4
  • 32
  • 36
4
votes
5 answers

VS2008 targeting .NET 2.0 doesn't stop me from using C# 3 features

I had a VS2005 solution and wanted to get off VS2005 for the new year. I was mostly happy with the upgrade process and pleasantly surprised to see that my build scripts mostly still worked. My question is around the multi-targeting feature - I…
dnord
  • 1,702
  • 2
  • 18
  • 34
3
votes
1 answer

How do I make NuGet aware of a specific version of a package while referencing a multi-targeted class library?

We have three projects: WebApp.csproj, ASP.NET WebForms app compiled against .NET Framework 2.0 Api.csproj, ASP.NET WebApi 2 compiled against .NET Framework 4.5 Lib.csproj, compiled against .NET Framework 2.0 and referenced by both of the projects…
s.m.
  • 7,895
  • 2
  • 38
  • 46
3
votes
1 answer

VStudio always compiles all the TargetFrameworks for referenced multi-target projects, whatever head is specified for a build in Uno-platform solution

I'm working on a cross-platform application using the Uno Platform. The app consists of 5 standard head projects for my App and a dozen of referenced cross-platform libraries projects (Uno-platform cross-platform library projects,…
3
votes
1 answer

How to easily consume nodejs-backend from html5 application with destinations?

I want to "connect" the html5 module with the nodejs backend, so that the frontend can access the backend for db logic. I found, that I have to create a destination in scp and write it in the mta.yaml and xs-app.js file for the approuter.…
3
votes
0 answers

Reference multitarget class library in VS2017 solution

In VisualStudio 2017 I created a class library which targets .net 4.0 (to support legacy applications on win XP) and 4.6.1 framework. I did this by making use of the new .csproj format which allows to specify multiple target frameworks as shown…
Quergo
  • 888
  • 1
  • 8
  • 21
3
votes
2 answers

WPF and NET 3.5 to 4 multi-targeting

I have a WPF 3.5 library of controls working with a WPF 3.5 application. I would now like to create a WPF 4 version of the application and use the same library (source code) for both versions 3.5 and 4 of the app. What are my options here? What are…
wpfwannabe
  • 14,587
  • 16
  • 78
  • 129
3
votes
3 answers

#includes in C files for processor specific implementations

I'm working on a 'C' code base that was written specifically for one type of embedded processor. I've written generic 'psuedo object-oriented' code for things like LEDs, GPIO lines and ADCs (using structs, etc). I have also written a large amount of…
Arsinio
  • 159
  • 8
3
votes
2 answers

XCode: Two targets, two main files?

I'm working up a game in XCode, and I want to add a helper application that uses the main application's various classes to build the main application's data files. Specifically: The main application is a card game. I want a helper app that uses the…
baudot
  • 1,618
  • 20
  • 33
3
votes
2 answers

Framework 4.5 assemblies are loaded when debugging a project targeted to the framework 4.0

I need to be able to target .NET Framework 4.0 using Visual Studio 2012 and verify that my code will work correctly when deployed on our 4.0 environment (Windows Server 2003). The multi-targeting in Visual Studio 2012 seems to work properly, but…
joshperry
  • 41,167
  • 16
  • 88
  • 103
2
votes
0 answers

Xamarin Forms custom renderers in MultiTarget project is ignored in Android

I have created a multi-target project that targets netstandard, xamarin.ios and monodroid10. Everything works fine with Debug and Release modes for both platforms when I build it myself. However, when our pipeline builds in Release mode, custom…
2
votes
1 answer

How to multitarget .NET 5 and .NET Core 3.1 while still building on .NET Core 3.0 SDK

I am trying to upgrade my project to support .NET 5 while still building on a .NET Core 3.1 toolset. I tried to add the .NET 5 TFM (.net5.0) to my target frameworks like…
chyyran
  • 2,446
  • 2
  • 21
  • 35
2
votes
2 answers

How to use different base class in custom control depending on platform target?

I have a custom editor that I use for iOS, but for UWP I use another editor called SfRichTextEditor. Now I wonder how I can create like a shareable class, since they have the same bindableproperties instead of doing what I currently do, which is…
DiddanDo
  • 401
  • 1
  • 5
  • 15
2
votes
1 answer

Prism v4 CURRENT Documentation/Tutorials and Usage/Penetration

I've been spending quite alot of time recently trying to learn XAML/C#/WPF/Silverlight, trying to build a Desktop application as well as a web application to go along with it, re-using the same code if possible. Prism seems like the optimal tool to…
nik_0_0
  • 23
  • 2
2
votes
1 answer

Source code in multiple targeting framework

I have a solution which contains 3 projects (NetCoreWeb, NetFrameworkWeb, SharedLibrary) NetCoreWeb: .Net Core 2.2 NetFrameworkWeb: Net Framework 4.5.2 SharedLibrary: NetCoreApp 2.2 & Net Framework 4.5.2 This is the source code in…
Redplane
  • 2,971
  • 4
  • 30
  • 59