-
Notifications
You must be signed in to change notification settings - Fork 547
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
[release/6.3] Switch to embedded package icon #1291
Conversation
Just updated to the GA SDK |
Seeing |
@@ -4,12 +4,12 @@ | |||
<id>EntityFramework.CodeTemplates.CSharp</id> | |||
<version>$NuGetPackageVersion$</version> | |||
<title>EntityFramework.CodeTemplates.CSharp</title> | |||
<iconUrl>http://go.microsoft.com/fwlink/?LinkID=386613</iconUrl> | |||
<authors>Microsoft</authors> | |||
<owners>Microsoft</owners> | |||
<tags>Microsoft EF EntityFramework</tags> | |||
<projectUrl>http://go.microsoft.com/fwlink/?LinkID=$ProjectUrlFwLinkID$</projectUrl> | |||
<licenseUrl>http://go.microsoft.com/fwlink/?LinkID=$LicenseUrlFwLinkID$</licenseUrl> |
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.
Get rid of this by switching to use $CommonMetadataElements$
for the majority of the properties. That is, remove everything set in https://github.com/dotnet/arcade/blob/dd885745172424fc8df97295514f693efaec8d24/src/Microsoft.DotNet.Arcade.Sdk/tools/Workarounds.targets#L102-L118 and add $CommonMetadataElements$
. Compare the final result 😺
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.
How does this package get built? This one & EntityFramework.CodeTemplates.VisualBasic don't get built by build -pack
, and I only see those two namespaces being referenced by their own .nuspec
files.
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.
These don’t ship
@@ -4,12 +4,12 @@ | |||
<id>EntityFramework.CodeTemplates.VisualBasic</id> | |||
<version>$NuGetPackageVersion$</version> | |||
<title>EntityFramework.CodeTemplates.VisualBasic</title> | |||
<iconUrl>http://go.microsoft.com/fwlink/?LinkID=386613</iconUrl> | |||
<authors>Microsoft</authors> | |||
<owners>Microsoft</owners> | |||
<tags>Microsoft EF EntityFramework</tags> | |||
<projectUrl>http://go.microsoft.com/fwlink/?LinkID=$ProjectUrlFwLinkID$</projectUrl> | |||
<licenseUrl>http://go.microsoft.com/fwlink/?LinkID=$LicenseUrlFwLinkID$</licenseUrl> |
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.
Again, Remove everything set in https://github.com/dotnet/arcade/blob/dd885745172424fc8df97295514f693efaec8d24/src/Microsoft.DotNet.Arcade.Sdk/tools/Workarounds.targets#L102-L118 and add $CommonMetadataElements$
. Compare the final result 😺
Lots of test failures:
Investigating |
@pranavkm is this related to https://github.com/aspnet/EntityFramework6/pull/1291/files#diff-72030269340a8915d41311ff20a0fff6R9 / https://github.com/aspnet/EntityFramework6/pull/1291/files#diff-c9127cef44c83bc099dd5837e7a5f15fR11? I took that fix from your commit to my AspNetCore-Tooling PR - dotnet/razor@83b434d |
The error message doesn't look like the one documented in the known issues list: https://github.com/dotnet/core/blob/master/release-notes/3.0/3.0-known-issues.md#preview-9 @nguerrera \ @rainersigwald, does this error message ring a bell? |
Yes, if the build succeeds, you will often get this error at runtime due to the name of the resource not being what you expected. |
But this is looking for a .resources file, so I don't think it is really dotnet/msbuild#4740 which is for non-resx, non-resources. It is also possible that you have code assuming the DependentUpon convention is not used to pick the .resources name and now it is. That would have been an intentional change in preview 9. |
Ah - https://github.com/aspnet/EntityFramework6/blob/70db72c100755c9051a9a2c48d3bcc9546cbe586/test/EntityFramework/FunctionalTests/FunctionalTests.csproj#L169-L329, https://github.com/aspnet/EntityFramework6/blob/70db72c100755c9051a9a2c48d3bcc9546cbe586/src/ef6/ef6.csproj#L39-L45 (These were the 2 files where I applied the
|
@nguerrera @JunTaoLuo did you guys discuss a resolution/workaround for this new error? I see the same thing came up here: dotnet/razor#1172 (comment) CC @pranavkm @BrennanConroy in case something like dotnet/razor@4eb9386 would work better here |
Tests are failing to extract a resource with this error (reformatted):
I think the critical one is the first one: - System.Data.Entity.Properties.Resources.resources
+ System.Data.Entity.Resources.Strings.resources Why is it getting that name? Because that's what the DependentUpon convention requests, because it's next to this file: That's generated because of So it looks like the DependentUpon convention should not be used. Trying that locally. |
Updated to use the fix from #1312 |
Just the one test failure, in
Will look tomorrow |
Looks like this test asserts that calling However, it appears that this type of exception will only be thrown when the first argument is It looks like instead we're hitting this block: I'm not sure why this was working before, or how the SDK update triggered the new behavior, as it doesn't appear this code has changed recently. @bricelam @ajcvickers any thoughts? |
@bricelam @rainersigwald @dougbu Likewise on this one. Does this change need to go in for the 3.1 release train? |
This one should get in for 3.0.2/3.1.1. I've been meaning to circle back to this one but have been caught up with 3.0.1 stuff |
@wtgodbe at this point, it may be best to
My preference is for you to get through 1 through 3 today or tomorrow if possible. I'm doing something similar in an update to dotnet/aspnetcore#13899 because that needs the latest Arcade SDK anyhow. You can crib from there when I'm done. |
The issue here isn't the package icons, but a test failure related to updating to the GA SDK. I agree though that it'll still be better to switch to the Arcade pattern, I'll do that today |
This now does 3 things:
|
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.
very nice
Need to update nuget.config |
Still have the test failure in |
@bricelam Any ideas? |
@rainersigwald do I need to update msbuild in this branch as well? #1450 (comment) Also ping @bricelam |
@wtgodbe Since this is moving to 3.0.100 that bug shouldn't be relevant--it was fixed (just) before RTM. You could try moving to a 3.0.101 prerel build, that picks up a couple of MSBuild fixes--but not anything that would obviously fix the confusing problem you're seeing. |
@bricelam will try apply a different workaround that was used in EFCore to resolve a simliar issue. |
Looking |
Contributes to aspnet/AspNetCore-Internal#3103