Questions tagged [multitargeting]
115 questions
1
vote
2 answers
Create multi-target Xamarin.Forms NuGet package
I'm trying to build a single NuGet package that can be installed in Xamarin.Android, Xamarin.iOS, Xamarin.UWP and Xamarin.Forms (.NET Standard) projects. I can't use .NET Standard since I need to have a custom Activity for my Android project, custom…

Pieterjan
- 2,738
- 4
- 28
- 55
1
vote
0 answers
ASP.Net website and multi-target frameworks - dependency error
I've got an ASP.Net website (that's really old). One of the projects (let's call it OurCore) that we have in the solution, has been updated to support both .NET Framework 4.6.1, and .NET Standard 2.0.
When I build the solution in Visual Studio, I…

Chris C
- 33
- 6
1
vote
0 answers
.NET Multi targetting output does not contain dependencies
I'm working on a lib (MyLib) that targets .net standard 2.0 and .net core app 3.0. The Lib has a dependency (PrimaryDependency), which in turn has another dependency (OtherDependency), and OtherDependency uses the Microsoft.Windows.Compatibility…

Stephan Steiner
- 1,043
- 1
- 9
- 22
1
vote
2 answers
How to set style of a WPF control according to target?
I have a project that needs to target .NET Framework 3.5 and 4.5, and I want to set property of a WPF control according to the build target. E.g . I have a textblock, and I want its background to be Azure if the build target is 3.5, Cyan if the…

Tung
- 25
- 3
1
vote
2 answers
Code written in Cross-platform library with __ANDROID__ does not execute in Xamarin forms application
I am using a multi-targeting library in my Xamarin forms application. The library has come code written with __ANDROID__ conditional compiler symbol. When i run the application on Android, it does not execute the code written with the symbol.
The…

Zohaib
- 11
- 2
1
vote
0 answers
Appx1101 while referring multi targeted project
I have project that referring .net starndard 2.0 and .net version 4.6.1. When I make a project reference with the UWP App I am facing the issue APPX1101: payload contains two or more files with same destnation path. Is it possible to refer the multi…

Visnu
- 87
- 8
1
vote
2 answers
Dynamic class loading to target multiple Android versions
I would like to make a single Android app for multiple Android versions (possibly every one of them)
My problem is that I want to check what is the version of Android the app is currently running on, and dynamically load a class which is version…

jillemash
- 13
- 3
1
vote
3 answers
How do I make my library simple, yet target the different frameworks?
I created an API wrapper called Chargify.NET and I'm starting to see a pattern develop that could potentially be solved by targeting .NET 4.
The issue is that as they enhance the API, I need to create more and more overloaded functions to handle one…

Kori
- 1,031
- 2
- 10
- 15
1
vote
1 answer
How best to support multiple versions of .net in the same library
I am creating a .net library in Visual Studio 2015 with the following aims:-
Support for .net 2, 3.5, 4 and 4.5+
PCL Support (.net 4.5+)
No extra dependencies apart from Json.net
Ideally the .net 4.5+ version of the library would make use of…

Geoff Smith
- 585
- 1
- 5
- 14
1
vote
2 answers
VS2010 Native Multi-Targeting
I have VS2005, VS2008, and VS2010 installed on my Win7 development machine. I have one particular project that uses a 3rd party DLL that gets an exception during the LoadLibrary() call when the EXE project is built by VS2010 (when targeting either…

Steve Valliere
- 1,119
- 7
- 12
1
vote
1 answer
Visual Studio 2012 .NET multi-targeting and async callbacks
I have a .NET application using .NET Framework 3.5, written in C#. The application is invoking delegates asynchronously using BeginInvoke. The application works fine when compiled using Visual Studio 2012 RC, but it freezes when compiled with Visual…

Suma
- 33,181
- 16
- 123
- 191
1
vote
1 answer
How to target both iPhone and iPad resolution on Flash CS6
I am building a small game for iOS on Flash CS6 and I want to target both iPad and iPhone resolutions, also supporting retina display if possible. I've played with the movie properties and the Air for iOS settings, but I am still in confusion about…

Can Poyrazoğlu
- 33,241
- 48
- 191
- 389
1
vote
1 answer
How MSBuild multitargeting works
I will try to explain this as clear as I can
I want to fully understand how MSBuild multitargeting works.
I have read several articles from Microsoft and I think I understand the basic but I want to be sure I am not missing anything.
According to…

Jupaol
- 21,107
- 8
- 68
- 100
0
votes
5 answers
Multi targeting in vs2008 with crystal reports
Is there a way to make VS2008 work with the old (vs2005 crystal reports) assemblies and not require any updates to be installed in the client machines?
We have upgraded a Visual Studio 2005 .net 2.0 solution to Visual Studio 2008. The purpose is to…

jvanderh
- 2,925
- 4
- 24
- 28
0
votes
1 answer
Multi target decision trees
Here is my problem. I need to implement a multi target decision tree algorithm. A multi target is an extension of multi label learning where the labels are not binary but can be continuous, categorical and so on. For example a label vector for a…

jojoba
- 554
- 9
- 19