-
Notifications
You must be signed in to change notification settings - Fork 83
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
Is there any way to call or invoke MSBuildLocator in the net4x from a dotnet SDK project? #291
Comments
Hi @awesome-liuxiao, MSBuildLocator running on .NET Core does not support invoking MSBuild assemblies targeting the .NET Framework. However, you can still build a project with a TargetFramework set to net472 or a similar version using the .NET Core SDK. If you need further clarification or have specific requirements, please feel free to ask. Providing additional details will help us address your needs more accurately. |
hi @YuliiaKovalova , Thank you for your reply, |
@awesome-liuxiao, can you share the full exception, including the callstack? |
@YuliiaKovalova thank you! |
I've noticed that this article tells that it is impossible to directly call a .net framework msbuild in a .net sdk project; but I'm wondering that is it possible to invoke .net framework msbuild as an assembly and use its methods (such as
RegisterMSBuildPath()
orRegisterInstance()
) to build a .net framework based project and collect the compilation result?The text was updated successfully, but these errors were encountered: