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

Failed to emit module #171

Open
wuliwux opened this issue May 12, 2021 · 4 comments
Open

Failed to emit module #171

wuliwux opened this issue May 12, 2021 · 4 comments
Labels

Comments

@wuliwux
Copy link

wuliwux commented May 12, 2021

Hi, when MrAdvice is installed in:
netcoreapp3.1
and an Aspect is active.
no LIVE sourcecode changes are possible.

Error:
CS7038 Failed to emit module 'ConsoleApp2': Changing the version of an assembly reference is not allowed during debugging: 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' changed version to '2.1.0.0'.

Build Log:
Build started... 1>------ Build started: Project: ConsoleApp2, Configuration: Debug Any CPU ------ 1>MrAdvice 2.9/.NETCoreApp,Version=v5.0 weaved module 'ConsoleApp2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' (targeting framework ) in 196ms 1>ConsoleApp2 -> D:\tmp\MrAdvice\ConsoleApp2\bin\Debug\netcoreapp3.1\ConsoleApp2.dll ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Project File:

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="MrAdvice" Version="2.9.0" />
  </ItemGroup>
</Project>

thanks for help and
best regards!

@picrap
Copy link
Member

picrap commented May 12, 2021

What is the problem? Live debug or the fact that something changes .NET standard target?

@wuliwux
Copy link
Author

wuliwux commented May 12, 2021

In debug mode you change the source and save the changes, this error occurs.

@picrap
Copy link
Member

picrap commented May 12, 2021

This probably can not be fixed, but I’ll take a desperate look.

@picrap
Copy link
Member

picrap commented Sep 17, 2021

Sorry, I don’t know how to fix this. Recent changes have been made, not sure they help anyway.

@picrap picrap added the on hold label Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants