Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multiple frameworks at same time #58

Open
joaommvsoares opened this issue Jun 2, 2021 · 0 comments
Open

Add support for multiple frameworks at same time #58

joaommvsoares opened this issue Jun 2, 2021 · 0 comments

Comments

@joaommvsoares
Copy link

joaommvsoares commented Jun 2, 2021

Hello,
Can you please add support to mutiple targets at sime time?
In my project:
<TargetFrameworks>net48;netstandard2.0</TargetFrameworks>
Building by script: VS2019 MSBuild.exe OK!
Building in VS2019 editor:
Severity Code Description Project File Line Suppression State
Error MSB4018 The "StrongNamer.AddStrongName" task failed unexpectedly.
System.MissingMethodException: Method not found: 'Void Mono.Cecil.WriterParameters.set_StrongNameKeyBlob(Byte[])'.
at StrongNamer.AddStrongName.ProcessAssembly(ITaskItem assemblyItem, Byte[] keyBytes, StrongNamerAssemblyResolver resolver)
at StrongNamer.AddStrongName.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() ClassLibrary4 C:\Users\joao.soares.nuget\packages\strongnamer\0.2.5\build\StrongNamer.targets 30

Thanks
JMS

@joaommvsoares joaommvsoares changed the title Add support for .NetStandard2.0 Add support for multiple frameworks at same time Jun 8, 2021
rolfbjarne pushed a commit to xamarin/Xamarin.MacDev that referenced this issue Oct 21, 2022
…sue (#103)

## Problem

There is an issue when building the project Xamarin.MacDev from XamarinVS in the IDE (as a submodule):
![image](https://user-images.githubusercontent.com/59936622/197078319-7e9af6c5-f65c-4c08-acd2-2acbccd95594.png)

This is a known issue with the strongnamer package:

[Add support for multiple frameworks at same time · Issue #58 · dsplaisted/strongnamer (github.com)](dsplaisted/strongnamer#58)

## Solution

The solution as suggested by @rolfbjarne and @mauroa is to only build XamarinMacDev for net461 on Windows. It is still necessary to build for netstandard2.0 on Mac.

![image](https://user-images.githubusercontent.com/59936622/197078516-dc2c2f21-8b31-4d85-8e3a-0a16cc4608f2.png)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant