-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
.NET Core 3.0.0 Preview 7 #3075
Comments
WPF Application
WpfApp33.csproj:
In VScode open the project folder and then run This creates publish as "WpfApp33.exe" that is 137MB in size and runs. fine but if you add a any control to the blank form then it does not run.
Remove the control and it runs fine again. Not much good if you cannot have a useful application that is not blank. |
@vatsan-madhavan @amit-kabra for WPF issue. |
@SFC-Sarge, What version of the SDK are you building against? Can you post a full project (zip) that we can use to repro. @jkoritzinsky, @jeffschwMSFT this looks like a ReadyToRun related problem. |
Further note: I even tried repairing VS Enterprise 2019 16.3 Preview 1, not change to solution results, Builds fine, Publishes fine, creates the Single Exe but if a control is added then it does not launch, remove the control and it launches. Strange.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
…________________________________
From: Danny McNaught
Sent: Wednesday, July 24, 2019 4:14:11 PM
To: dotnet/core <reply@reply.github.com>; dotnet/core <core@noreply.github.com>
Cc: Mention <mention@noreply.github.com>
Subject: RE: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
Note: This is a new VS Enterprise 2019 WPF/Net Core project using only MS supplied controls. No third party controls are used. Tried Button, Checkbox, TextBlock all with the same results.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
________________________________
From: Danny McNaught
Sent: Wednesday, July 24, 2019 4:11:58 PM
To: dotnet/core <reply@reply.github.com>; dotnet/core <core@noreply.github.com>
Cc: Mention <mention@noreply.github.com>
Subject: RE: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
Removed the <PublishReadyToRun>true</PublishReadyToRun> line from the project and the file size got smaller but had the same result with control on form exe does not launch remove control exe launches.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
________________________________
From: Danny McNaught
Sent: Wednesday, July 24, 2019 4:09:22 PM
To: dotnet/core <reply@reply.github.com>; dotnet/core <core@noreply.github.com>
Cc: Mention <mention@noreply.github.com>
Subject: RE: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
.Net Core 3, Preview 7
Tried under VS Code and VS Enterprise 2019 16.3 Preview 1.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
________________________________
From: Vatsan Madhavan <notifications@github.com>
Sent: Wednesday, July 24, 2019 4:05:42 PM
To: dotnet/core <core@noreply.github.com>
Cc: Danny McNaught <sfcsarge@outlook.com>; Mention <mention@noreply.github.com>
Subject: Re: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
@SFC-Sarge<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSFC-Sarge&data=02%7C01%7C%7Cfd0d424a70054214712808d710724e6c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636995955430849245&sdata=EHFWk%2BuNImqgZvep6UE2C5dvvGZCiNLn7aFmcXNZCeE%3D&reserved=0>, What version of the SDK are you building against? Can you post a full project (zip) that we can use to repro. @jkoritzinsky<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjkoritzinsky&data=02%7C01%7C%7Cfd0d424a70054214712808d710724e6c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636995955430869267&sdata=CgddZzNej3hk%2B6PHEbnZ1oUxV5ke2bNy0Hz87B8oJQk%3D&reserved=0>, @jeffschwMSFT<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FjeffschwMSFT&data=02%7C01%7C%7Cfd0d424a70054214712808d710724e6c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636995955430889271&sdata=8btfI%2FOFAViOdYFOM02HcdCwWk3kX6lwKtWLYdPre4Q%3D&reserved=0> this looks like a ReadyToRun related problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2Fcore%2Fissues%2F3075%3Femail_source%3Dnotifications%26email_token%3DAJVQO5MG5NMUEI3CXEZPWHTQBCYZNA5CNFSM4IGGSHYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2XOSJA%23issuecomment-514779428&data=02%7C01%7C%7Cfd0d424a70054214712808d710724e6c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636995955430909287&sdata=DEAZ83gqODGvVItusNA3vGE6tzdDZA59Z%2BW4iRsa1fU%3D&reserved=0>, or mute the thread<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJVQO5N5FQORDENISGMV3D3QBCYZNANCNFSM4IGGSHYA&data=02%7C01%7C%7Cfd0d424a70054214712808d710724e6c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636995955430919298&sdata=PdNEhQ9C7y%2BS%2B%2BXpgztuouOmvSkC6Fn%2Bd4bsWo151VA%3D&reserved=0>.
|
Here is the project I am trying.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
…________________________________
From: Danny McNaught
Sent: Wednesday, July 24, 2019 4:17:51 PM
To: dotnet/core <reply@reply.github.com>; dotnet/core <core@noreply.github.com>
Cc: Mention <mention@noreply.github.com>
Subject: RE: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
Further note: I even tried repairing VS Enterprise 2019 16.3 Preview 1, not change to solution results, Builds fine, Publishes fine, creates the Single Exe but if a control is added then it does not launch, remove the control and it launches. Strange.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
________________________________
From: Danny McNaught
Sent: Wednesday, July 24, 2019 4:14:11 PM
To: dotnet/core <reply@reply.github.com>; dotnet/core <core@noreply.github.com>
Cc: Mention <mention@noreply.github.com>
Subject: RE: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
Note: This is a new VS Enterprise 2019 WPF/Net Core project using only MS supplied controls. No third party controls are used. Tried Button, Checkbox, TextBlock all with the same results.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
________________________________
From: Danny McNaught
Sent: Wednesday, July 24, 2019 4:11:58 PM
To: dotnet/core <reply@reply.github.com>; dotnet/core <core@noreply.github.com>
Cc: Mention <mention@noreply.github.com>
Subject: RE: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
Removed the <PublishReadyToRun>true</PublishReadyToRun> line from the project and the file size got smaller but had the same result with control on form exe does not launch remove control exe launches.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
________________________________
From: Danny McNaught
Sent: Wednesday, July 24, 2019 4:09:22 PM
To: dotnet/core <reply@reply.github.com>; dotnet/core <core@noreply.github.com>
Cc: Mention <mention@noreply.github.com>
Subject: RE: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
.Net Core 3, Preview 7
Tried under VS Code and VS Enterprise 2019 16.3 Preview 1.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
________________________________
From: Vatsan Madhavan <notifications@github.com>
Sent: Wednesday, July 24, 2019 4:05:42 PM
To: dotnet/core <core@noreply.github.com>
Cc: Danny McNaught <sfcsarge@outlook.com>; Mention <mention@noreply.github.com>
Subject: Re: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
@SFC-Sarge<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSFC-Sarge&data=02%7C01%7C%7Cfd0d424a70054214712808d710724e6c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636995955430849245&sdata=EHFWk%2BuNImqgZvep6UE2C5dvvGZCiNLn7aFmcXNZCeE%3D&reserved=0>, What version of the SDK are you building against? Can you post a full project (zip) that we can use to repro. @jkoritzinsky<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjkoritzinsky&data=02%7C01%7C%7Cfd0d424a70054214712808d710724e6c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636995955430869267&sdata=CgddZzNej3hk%2B6PHEbnZ1oUxV5ke2bNy0Hz87B8oJQk%3D&reserved=0>, @jeffschwMSFT<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FjeffschwMSFT&data=02%7C01%7C%7Cfd0d424a70054214712808d710724e6c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636995955430889271&sdata=8btfI%2FOFAViOdYFOM02HcdCwWk3kX6lwKtWLYdPre4Q%3D&reserved=0> this looks like a ReadyToRun related problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2Fcore%2Fissues%2F3075%3Femail_source%3Dnotifications%26email_token%3DAJVQO5MG5NMUEI3CXEZPWHTQBCYZNA5CNFSM4IGGSHYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2XOSJA%23issuecomment-514779428&data=02%7C01%7C%7Cfd0d424a70054214712808d710724e6c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636995955430909287&sdata=DEAZ83gqODGvVItusNA3vGE6tzdDZA59Z%2BW4iRsa1fU%3D&reserved=0>, or mute the thread<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJVQO5N5FQORDENISGMV3D3QBCYZNANCNFSM4IGGSHYA&data=02%7C01%7C%7Cfd0d424a70054214712808d710724e6c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636995955430919298&sdata=PdNEhQ9C7y%2BS%2B%2BXpgztuouOmvSkC6Fn%2Bd4bsWo151VA%3D&reserved=0>.
|
@SFC-Sarge if you had an attachment, it didn't come through via email. Would you mind attaching it in GitHub directly? I have a suspicion that this is related to dotnet/wpf#634 and some (or most) WPF apps may not be usable as ReadyToRun in Preview7. I'll let @jkoritzinsky or @jeffschwMSFT chime in. |
cc @fadimounir |
Ok just got home and will connect and send after I eat.
Danny McNaught
United States Postal Service Network Operations Portfolio Support
· System Architecture and Integration.
· Senior Application Developer in C# Visual Studio Enterprise 2017/2019, SharePoint 2016, Office 2016/2019, Office 365, Windows Forms, Windows Presentation Foundation, Xamarin forAndroid, Universal Windows Platform, Windows Workflow, and Windows 10.
· Software packaging in Wix 4.x and WixSharp.
· Workstation Imaging using Microsoft DISM and ImageX Technologies.
Office: 1-984-292-3437 Cell: 919-239-3306 DXC PC: 1-984-292-3437
Perspecta e-Mail: mailto:danny.mcnaught@uspsector.com
USPS e-Mail: mailto:danny.c.mcnaught@usps.gov
Home e-Mail : mailto:sfcsarge@outlook.com
Suite 201
2610 Wycliff Rd.
Raleigh, NC 27607-3073
…________________________________
From: Jeff Schwartz <notifications@github.com>
Sent: Wednesday, July 24, 2019 4:38:39 PM
To: dotnet/core <core@noreply.github.com>
Cc: Danny McNaught <sfcsarge@outlook.com>; Mention <mention@noreply.github.com>
Subject: Re: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
cc @fadimounir<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffadimounir&data=02%7C01%7C%7C1990e222c8d24555d3ea08d71076e93e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636995975208571889&sdata=IDjErLtSrnF3VcgLAzp8sa0X0PJ7PYobUWc%2Fr5dy4EE%3D&reserved=0>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2Fcore%2Fissues%2F3075%3Femail_source%3Dnotifications%26email_token%3DAJVQO5I2GARJNF57SQVQ7BTQBC4U5A5CNFSM4IGGSHYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2XRJBQ%23issuecomment-514790534&data=02%7C01%7C%7C1990e222c8d24555d3ea08d71076e93e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636995975208581900&sdata=t4wzzzqyWUvBIaNkdFp0Gm7ThoSXTHZod6Ox56CJtck%3D&reserved=0>, or mute the thread<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJVQO5IRO7BWUTB4FOEQ57LQBC4U7ANCNFSM4IGGSHYA&data=02%7C01%7C%7C1990e222c8d24555d3ea08d71076e93e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636995975208591905&sdata=9DcGtT7dw8fWZnD4RONQI1eowB9a4q4juRp3x6JoSvM%3D&reserved=0>.
|
Note: I validated this only happens in WPF, Windows Forms works correctly. |
Hmm... that's odd. I can actually run the app with the button control, with PublishTrimmed, PublishReadyToRun and PublishSingleFile. The app doesn't crash, and I can see the button. @SFC-Sarge What version of the SDK were you using? |
With true in project file I get the following Warnings:
|
The version I have install is: dotnet-sdk-3.0.100-preview7-012821-win-x64.exe gotten from the download page for SDK. |
But: when I publish I get: JITPath "C:\Users\danny.mcnaught.nuget\packages\microsoft.netcore.app.runtime.win-x64*3.0.0-preview7-27912-14* That version must come with 16.3 Preview 1 installed this morning. |
With Project file containing: true and true I get: |
I was able to repro the issue with the Preview 8 bits. This issue is caused by enabling the PublishTrimmed switch, not ReadyToRun. Interestingly, I wasn't able to start the app even without the button with the trimming. cc @sbomer |
Could be related to dotnet/linker#628 |
Removing PublishTrimmed>true I was able to launch the exe with and without a button control added to the form. So it depends on what SDK version you have installed. |
@fadimounir, I can't repro it with 3.0.100-preview7-012821. I'm was able to repro a crash with Preview8 bits (3.0.100-preview8-013417).
I think this is related to the bad typerefs generated by the C++/CLI compiler into DirectWriteForwarder.dll. I'm not sure whether the linker is playing any role or not during |
Note: even though without PublishTrimmed>true the button control is not enabled or clickable. |
Nothing I do enables the button on run. design mode shows it enabled but after the exe launches it is grayed out. |
I see these exceptions when PublishTrimmed is enabled. Without it, I'm not seeing any of these exceptions.
Not sure what the issue is here. I can see that too on my end. @vatsan-madhavan ? |
@SFC-Sarge, I wasn't able to reproduce this issue with the project you shared above. However the error you're getting looks like it could be caused by the linker (https://aka.ms/dotnet-illink). You could try publishing without
If your error only shows up with
|
@dcuccia, I've opened dotnet/wpf#1451 to track this - please follow updates there. |
@sbomer @vatsan-madhavan @vivmishra
for the released version and for debug version:
The error I see in the log file provided was just using Release and Debug from Visual Studio,not the Published option, just run in debug mode and the application with run returns the error in the log file. Added:
No change in Release/Debug/Publish results. Release/Debug runs but returns the same Error:
Publish version of SingleExe does not launch. Using only the
Publish SingleExe Result: SingleExe does not launch. Removing |
@sbomer @vatsan-madhavan @vivmishra |
@SFC-Sarge, thanks for the additional details. Looks like this is unrelated to |
@sbomer |
@sbomer |
@sbomer
Only changed the debug version of FolderProfile2.pubxml
|
@sbomer @vivmishra @vatsan-madhavan |
@SFC-Sarge here's what I'm seeing. Starting with the last solution you shared,
Please give that a try an see if it works for you. I would suggest trying to get this working without |
@sbomer |
@judyanndixon Ah, yeah, that's a known bug in this version of VS. The top level Blazor entry in the New Project Dialog is being updated to be generic for both Blazor Server Apps and Blazor WebAssembly Apps in the next preview update. Sorry about the confusion! |
@sbomer Error does not show and internal exception though:
|
@sbomer @vivmishra @vatsan-madhavan That fixes Release/Debug Mode from Visual Studio 2019 but publish using either
Using My question now is if you have different nuget packages install and each require/support a different how does that work? i.e. netcoreapp3.0 likes |
@sbomer @vivmishra @vatsan-madhavan |
@sbomer @vivmishra @vatsan-madhavan |
This comment has been minimized.
This comment has been minimized.
@sbomer @vivmishra @vatsan-madhavan |
@sbomer @vivmishra @vatsan-madhavan |
@richlander, do you want to address this? |
@vivmishra @sbomer @vatsan-madhavan Note: The non-SingleExe file:
Windows Application Event Log Error:
|
@vivmishra @sbomer @vatsan-madhavan Added the Microsoft.PowerShell.Native nuget package to the project but still get the same Event Log Error:
|
Link to PowerShell Issue reported. |
Net Core 3 Preview 8 fix the SingleExe issues except for PowerShell still does not work. I add the the current issue with the PowerShell Group at: |
@SFC-Sarge the challenge is that the Microsoft.PowerShell.Native package includes its pdb as part of its dependencies (which is highly unusual). By default we do not package pdbs in the single exe to help reduce the overall size. In this case, if you add 'true' to your project file the project will launch. |
Final .NET Core 3.0 release issue: #3430 |
Release Notes
Download
Blog posts (live after 10 am PST on 7/23/2019)
.NET Core
ASP.NET Core
Please report any issues you find with 3.0.0 Preview 7, either responding to this issue, creating a new issue or creating a new issue in one of the following repos:
The text was updated successfully, but these errors were encountered: