-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add warnings related to Microsoft.NET.Sdk.WindowsDesktop #3315
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
Add warnings related to Microsoft.NET.Sdk.WindowsDesktop #3315
Conversation
/cc @rladuca |
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.
Looks good, just a few questions and a nit.
Tests are failing with the new warning (treated as error). Perhaps there are some test scenarios that need updating? |
src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.DefaultItems.targets
Show resolved
Hide resolved
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> | ||
<file datatype="xml" source-language="en" target-language="pt-BR" original="../Strings.resx"> | ||
<body> | ||
<trans-unit id="AddResourceWithNonIntegerResource"> | ||
<source>NETSDK1076: AddResource can only be used with integer resource types.</source> | ||
<target state="translated">NETSDK1076: AddResource só pode ser usado com tipos de recursos inteiros.</target> | ||
<target state="new">NETSDK1076: AddResource can only be used with integer resource types.</target> |
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.
Something went wrong and things are resetting to English in some files. Can you try reverting all the xlf and let it regenerate? Also, if you have any insight on how this happened, let's add an issue to github.com/dotnet/xliff-tasks.
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.
Nice catch as I missed this (unexpanded) file. I wonder what caused this.
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.
It happened to src/Tasks/Common/Resources/xlf/Strings.tr.xlf
too.
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.
Looking through the history, this happened in the very first commit. I'll redo the work and look through each file this time... and see if I can repro the problem along the way..
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.
Fixed these.
Anyone have ideas on why |
@wli3 Can you look at the TestAsTools failure here? It looks like an issue with local tools and/or Json parsing. (It's possible that the way the tool is being run is mixing up different pieces of the .NET Core SDK from stage 0 and from the repo in an incompatible way after stage 0 has been updated).
|
@dsplaisted yes. there was a breaking change from s.t.json. and we get a mix of assembly versions. |
update stage 0 should resolve it |
never mind, there should be a new breaking change. I need to push it though core-sdk to fix it |
Here is the breaking change dotnet/corefx#38120 cc @ahsonkhan |
my PR is here dotnet/cli#11532 however, after merging the change need to flow to core-sdk. and then we need to update the stage 0 in this PR to the new build core-sdk |
@dsplaisted @livarcocc we need to wait for about a day to check this in. or we can consider ignore "Windows_NT_TestAsTools Build_Debug" if we need to get it in quick |
- Add a check to warn when `UseWpf` or `UseWindowsForms` is set without including `Microsoft.NET.Sdk.WindowsDesktop`
@wli3 Windows_NT_TestAsTools Build_Debug is continuing to fail with the latest core-sdk in Stage 0. Any ideas when this will be fixed? I'm eager to get this change to get in since there is some preview 7 work in WPF that depends on these changes flowing through to core-sdk and then onto dotnet/wpf.... |
We have a CI issue that is blocking the dependency flow. I will add you to the thread |
@vatsan-madhavan meanwhile do you mind add me to your fork as contributor? I can push it through finish if i have the access to push to the branch |
Normally you have push access to the PR source branch if PR has the checkbox to allow maintainers to do so (which it does by default). This allows this without maintaining collaborator lists in forks. |
@wli3 just added you. if i unchecked the 'allow maintainers to edit..' checkbox, i have no memory of doing so. when i try to create another PR from my fork, the checkbox is definitely enabled by default as @nguerrera describes it (which means I must have unchecked it :( and forgotten all about it... ). |
also added e6c78c7 to adjust runtime pack name change talked to @dsplaisted |
@fadimounir https://dev.azure.com/dnceng/public/_build/results?buildId=224313&view=ms.vss-test-web.build-test-results-tab these new failing tests are in your area. Do you know them? |
Looks like some update that is maybe breaking the logic around this line:
Not all failing tests are R2R though... |
@wli3 From the output the It_publishes_the_project_with_a_refs_folder_and_correct_deps_file tests are failing because a new file has been added to the runtime, and the baseline needs to be updated:
The crossgen failures are failing with:
That looks like it's probably also related to the runtime pack rename |
Don't hash DesignTimeBould for ResolvePackageAssets
…put for .NET Core 3.0
Use FrameworkName metadata to find the runtime pack for Microsoft.NETCore.App, instead of a now-outdated convention.
Update stage 0
@vatsan-madhavan This should hopefully be unblocked if you rebase it on top of #3333, which was just merged |
- Add a check to warn when `UseWpf` or `UseWindowsForms` is set without including `Microsoft.NET.Sdk.WindowsDesktop`
The build finally passed! Appreciate it if someone can merge at earliest convenience! |
….4 (dotnet#3315) - Microsoft.NET.Sdk - 3.1.100-preview2.19525.4
Related: #3126
This is also needed to completely fix dotnet/wpf#866 - we still can't support support multitargeting
netcoreapp2.2
, and also to fix dotnet/wpf#867Microsoft.NET.Sdk.WindowsDesktop
UseWpf
orUseWindowsForms
is set without includingMicrosoft.NET.Sdk.WindowsDesktop