-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Build with generated code #185
Comments
I understand that the latest previews for .NET 6 require an opt-in in the project file (certainly for preview 7), so you would need to add: <ImplicitUsings>enable</ImplicitUsings> that said, it should still work, as it shells out to msbuild. So if it works for you with your current SDK, buildalyzer should pick that up and get you some results that match what you are seeing in your IDE / command line. Update: wrong - It's rc1 that will require the opt-in |
In the new templates these implicit usings are enabled by default. |
I've ran the test locally here, and it fails due to a weird error, which is the same error I see on all my projects (whatever TFM):
I'm not sure why, but when the .NET 6 SDK is present (i.e. installed and not suppressed by a System.Environment.SetEnvironmentVariable("UseAppHost", "false"); When I add that to the tests, your |
Potential fix: #187 |
Merge of solution accomplished |
Hello,
with net 6.0 we get generated code by default (implicit global usings).
I would like to load those generated files with Buildalyzer, too.
What should I do?
The text was updated successfully, but these errors were encountered: