-
Notifications
You must be signed in to change notification settings - Fork 16
Does not work on .NET 6 #157
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
Comments
Published version |
Having some issues converting NHibernate.Tests:
|
I am able to get this error only on nhibernate/nhibernate-core/pull/2951 pull request. By removing
|
Thanks |
With the newly released version |
Hm.. Installing .NET 6 breaks async generation. I see the same exception as hazzik for master branch. So for master it seems 0.20.1 will solve the problem. What about 5.3 branch? Any workarounds? Trick with global.json no longer works for me with .NET 6 installed |
Yea you are right, for some reason |
Alternatively you can publish 0.18.3 version with MsBuildLocator restricted to .NET Core 2.1. So instead of: AsyncGenerator/Source/AsyncGenerator/Internal/EnvironmentHelper.cs Lines 84 to 87 in 110c0a1
Use something like: var instance = MSBuildLocator.QueryVisualStudioInstances()
#if NETCOREAPP2_1
.Where(o => o.Version.Major == 2)
#endif
.OrderByDescending(o => o.Version)
.FirstOrDefault(); |
In Windows |
Did you run it under .NET Core or NetFx? It seems true for NetFx only. Here is example I run under .NET 6 on Windows with latest Microsoft.Build.Locator 1.4.1: using Microsoft.Build.Locator;
var instance = MSBuildLocator.QueryVisualStudioInstances()
//.Where(o => o.Version.Major == 2)
.OrderByDescending(o => o.Version)
.ToList();
foreach (var i in instance)
{
Console.WriteLine(i.Version);
Console.WriteLine(i.MSBuildPath);
} Output I see lists all .NET Core SDKs:
P.S. I have only VS 2019 installed. |
My bad, I didn't noticed that I had I published version |
Thanks! |
The text was updated successfully, but these errors were encountered: