Skip to content
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

wpf net6 textbox: string literals get mangled using net 6 but not net 5 #55672

Closed
vsfeedback opened this issue Aug 16, 2021 · 4 comments
Closed
Labels
Area-Compilers Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


I've added the code files that produced this below. it's a practice exercise from a book called head first c#.

net6 output:

units of honey
25.0 units of nectar100.0Vault report:

0.0
Unassigned workers: 0.0
Egg count: 1 Honey Manufacturer bee
1 Nectar Collector bee3
TOTAL WORKERS: 1 Egg Care bee

net5 output:

Vault report:
25.0 units of honey
100.0 units of nectar

Egg count: 0.0
Unassigned workers: 0.0
1 Nectar Collector bee
1 Honey Manufacturer bee
1 Egg Care bee
TOTAL WORKERS: 3


Original Comments

Feedback Bot on 8/16/2021, 00:45 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

@mairaw mairaw transferred this issue from dotnet/core Aug 17, 2021
@ryalanms
Copy link
Member

This doesn't look related to WPF. Transferring to the runtime...

        private void UpdateStatusReport()
        {
            StatusReport = $"Vault report:\n{HoneyVault.StatusReport}\n" +
            $"\nEgg count: {eggs:0.0}\nUnassigned workers: {unassignedWorkers:0.0}\n" +
            $"{WorkerStatus("Nectar Collector")}\n{WorkerStatus("Honey Manufacturer")}" +
            $"\n{WorkerStatus("Egg Care")}\nTOTAL WORKERS: {workers.Length}";
        }
net6 output:

units of honey
25.0 units of nectar100.0Vault report:

0.0
Unassigned workers: 0.0
Egg count: 1 Honey Manufacturer bee
1 Nectar Collector bee3
TOTAL WORKERS: 1 Egg Care bee

net5 output:

Vault report:
25.0 units of honey
100.0 units of nectar

Egg count: 0.0
Unassigned workers: 0.0
1 Nectar Collector bee
1 Honey Manufacturer bee
1 Egg Care bee
TOTAL WORKERS: 3

@ryalanms ryalanms transferred this issue from dotnet/wpf Aug 17, 2021
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@stephentoub
Copy link
Member

This looks like a dup of #55461.

@stephentoub stephentoub transferred this issue from dotnet/runtime Aug 17, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 17, 2021
@jcouv
Copy link
Member

jcouv commented Aug 23, 2021

Indeed a dupe of #55461. Thanks @stephentoub
Fixed by #55494 in 17.0p4
FYI @333fred

@jcouv jcouv closed this as completed Aug 23, 2021
@jcouv jcouv added Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented
Projects
None yet
Development

No branches or pull requests

4 participants