-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Convert Components projects to use ProjectRef #6698
Conversation
src/Components/Blazor/Server/src/Microsoft.AspNetCore.Blazor.Server.csproj
Outdated
Show resolved
Hide resolved
...mponents/Blazor/Templates/src/content/BlazorHosted-CSharp/.template.config.src/template.json
Show resolved
Hide resolved
I'm getting a weird error attempting to build Microsoft.VisualStudio.BlazorExtension.csproj.
It doesn't appear this project is currently building anyways, so I've excluded it. Is that okay? |
OK, interesting. We do need to be building that VSIX (at least by this time next week). I don't know what that error is about or how to address it, but if it has to be handled after this PR that's probably viable. |
@natemcmaster As part of this, can I check you're able to run the E2E tests locally and that they all pass? They aren't running in CI yet because we still have unresolved issues with getting the Chrome and Java into the CI environments, but they do run locally. It's easiest to run them from VS. |
Sure, once I can get this compiling. I'm getting a compiler error in generated code that I don't understand, possibly the result of the change in layout of files. Any ideas @pranavkm ?
|
Yes, I think that's it. Currently the Razor Components compiler uses the folder name as the generated namespace, so your change to put them in a folder called |
Is there an option to tell the razor compiler to use a different generated namespace? It appears it does not honor RootNamespace. |
One of the unit tests is failing because there is a new file in output: System.Diagnostics.Tracing.dll.
It appears the problem is that this file is in output, but not listed as expected: "System.Diagnostics.Tracing.dll". Should I add this to the list of expected files? Also, I tried to start selenium so I could run E2E Tests, but it fails to boot on my box. I have the JDK 11 installed.
|
I think you need a lower JDK as it doesn't like 11. But @SteveSandersonMS can confirm |
JDK < 11 has gone out of support on Windows. I don't think we should require people to install JDKs which may include vulnerable versions of Java. |
I don't think so, but cc @rynowak |
Yes, I think that's OK. I know it would be tough to trace back precisely why this has changed. If it turns out to be a problem we can investigate further. |
I replied elsewhere. |
I ended up renaming the "perf" folder back to "Microsoft.AspNetCore.Blazor.E2EPerformance" due to this: Tests assume assembly name == the directory name of contentRoot. Looks like a product issue that needs to be resolved separately. |
209 of 214 E2E tests passed locally. The ones failing had this error:
|
🆙 📅 Running I still get issues when running E2E tests, but those don't appear to be related to my changes. |
CI checks are green. Okay to merge? I'd like to get this in soon so we ensure preview 2 versions of Components stay up to date with the latest changes made its dependencies. |
@natemcmaster Did you resolve the E2E test issues? They were passing before. I'm not sure how them not passing now could be unrelated to this PR, but please ping me if you would like me to help debug! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Project structure looks good. @SteveSandersonMS \ @rynowak to sign off on the change
I found the problem and fixed it. The tests were failing because they had not been updated to react to #5146. The server was responsding with HTTP 406 because there was no formatter available to turn You can run all tests locally now by running
cc @pranavkm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all the updates!
This addresses #4246 for src/Components/. I've implemented the source code layout as described here: https://github.com/aspnet/AspNetCore-Internal/issues/1535#issuecomment-451488620
This PR is WIP because it doesn't build yet. I'll make comments about the problems I've run into.