Questions tagged [multitargeting]

115 questions
2
votes
1 answer

.NETStandard multi-targeting library packages do not get restored when building

Background: I have created a multi-targeting library that targets net40, net462, and netstandard2.0. The purpose of this library is to wrap StackExchange.Redis and some related reconnect logic. For net40 I need to use an older version of the package…
JamesFaix
  • 8,050
  • 9
  • 37
  • 73
2
votes
2 answers

Multi-target netstandard1.0 and netstandard2.0 side-by-side?

When I create a multi-target .NET csproj which targets netstandard1.2, netstandard2.0 and net45, do I have to include both of the netstandard monikers in the section of the .csproj or is it enough to just mention netstandard1.2 (the lower…
thomasgalliker
  • 1,279
  • 13
  • 19
2
votes
2 answers

How can I multi-target a C# Class Library to support both NET_STANDARD and NET_COREAPP?

I have a class library which is currently multi-targeting NET40 and NETSTANDARD2.0: net40;netstandard2.0 However, I now need to also support some new api which was added as part of NETCOREAPP2.1 which is not…
MaYaN
  • 6,683
  • 12
  • 57
  • 109
2
votes
1 answer

Xamarin Xaml and Multitargeting

I'm creating a multi-targeted class library for a Xamarin Forms project which will be targeted to .NET Standard 2.0, MonoAndroid 8.1, and Xamarin.iOS 1.0. I understand how to conditionally include files for compilation based upon the platform, to…
Max Hampton
  • 1,254
  • 9
  • 20
2
votes
2 answers

How-To MultiTarget Both SilverLight 4 and WPF Application?

How can I MultiTarget Both SilverLight 4 and WPF Application ?
Yoann. B
  • 11,075
  • 19
  • 69
  • 111
2
votes
1 answer

Best practices for creating both mouse and touch-oriented WPF application

There is a need to develop WPF application which will support both mouse and touch input. I'm looking for an approach that will enable maintaining single codebase and minimize pain to implement that. Some framework or build configuration maybe -…
Jaded
  • 1,802
  • 6
  • 25
  • 38
1
vote
1 answer

VS2010 Multi-Targeting Not Working Correctly

I'm having an extremely strange problem with VS2010's multi-targeting. In a nutshell, only targeting .NET 3.5 Client Profile seems to be working correctly. I really need to be able to target .NET 2.0. Anyone have a thought or two? Creating a…
Todd Sprang
  • 2,899
  • 2
  • 23
  • 40
1
vote
1 answer

GetValue does not exist in the current context and other errors when using a PLatformBehavior with multi targetting in .NET MAUI App

I implemented a blur behavior for images in a .NET MAUI app using multi-targetting so that it is available in both Android and iOS. The shared class looks like this: public partial class BlurBehavior { public static readonly BindableProperty…
Mephisztoe
  • 3,276
  • 7
  • 34
  • 48
1
vote
1 answer

How do I target arm64 on a net7.0-macos project?

I'm building a multi targeted app with frameworks net7.0-windows;net7.0-macos. When I build the project, it is building to bin/Debug/net7.0-macos/osx-x64. I'd like for it to target arm64 since I'm on an M1 mac. Is this possible?
ldam
  • 4,412
  • 6
  • 45
  • 76
1
vote
2 answers

"To debug this project, configure it to use the 'Managed (CoreCLR)' debugger." when trying to debug multi target framework in .NET Core

I'm using Visual Studio 2019 and I have a multi targeted framework which targets .NET Framework 4.72 and .NET Core 5.0. The multi targeted .csproj is configured as follows:
Nir
  • 1,836
  • 23
  • 26
1
vote
1 answer

Creating a NuGet package with .exe file as content file

I have been trying to include the 7za.exe file from the installed 7ZipCLI NuGet package into a project, of which I want a NuGet package to be created. The NuGet package targets both.NET Standard2.0 and .NET Framework v4.6.1+. I am using the Net…
1
vote
0 answers

Adding .NET Core Multi-target to a .NET Framework library

I have a .NET Framework library with NuGet package dependencies. This library is consumed exclusively by .NET Framework projects. Some of them by local project references, and most through NuGet. I publish the library to a private NuGet server. A…
Erasmus
  • 596
  • 5
  • 8
1
vote
1 answer

What commands are behind the Visual Studio Pack command?

I'm trying to configure a GitHub workflow that builds my multi-target NuGet package (to be used with Xamarin.Forms) and pushes this package to GitHub and Nuget. I discussed the issue here, and it all seems to boil down to the following: I cannot use…
Pieterjan
  • 2,738
  • 4
  • 28
  • 55
1
vote
1 answer

Github Actions: Push nuget xamarin.forms package

I'm trying to configure a GitHub action that builds my multi-target Xamarin.Forms plugin and pushes the package to GitHub and NuGet. Pushing the package to GitHub and NuGet shouldn't be much of a problem anymore. I'm having trouble with building my…
1
vote
1 answer

Xamarin.Forms SDK-Style multiplatform project with XAML

Have defined multitarget project: netstandard2.0;xamarinios10;monoandroid9.0;
Arvis
  • 8,273
  • 5
  • 33
  • 46