.NET Core 3.0.0 Preview 7
Blog posts (live after 10 am PST on 7/23/2019)
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:
- aspnet/Home - for ASP.NET Core questions
- aspnet/EntityFrameworkCore - for Entity Framework Core questions
- dotnet/cli - for CLI tools and questions
- dotnet/corefx - for API issues and questions
- dotnet/coreclr - for runtime issues
- dotnet/core-setup - for installer issues
- dotnet/winforms - for Winforms issues
- dotnet/wpf - for WPF issues
- nuget/home - for NuGet questions and issues
WPF Application MainWindowxaml:
<Window x:Class="WpfApp33.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp33"
mc:Ignorable="d"
Title="Single Executable Sample" Height="450" Width="800" WindowStartupLocation="CenterScreen" IsEnabled="False">
<Grid>
</Grid>
</Window>
WpfApp33.csproj:
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<UseWPF>true</UseWPF>
<PublishTrimmed>true</PublishTrimmed>
<PublishReadyToRun>true</PublishReadyToRun>
<PublishSingleFile>true</PublishSingleFile>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<Platforms>x64</Platforms>
<OutputPath>bin\X64\Release\</OutputPath>
<AssemblyVersion>1.0.1.7144</AssemblyVersion>
<FileVersion>1.0.1.7144</FileVersion>
<ApplicationIcon>USPS.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
</Project>
In VScode open the project folder and then run
dotnet publish -r win-x64 -c release
This creates
<Grid>
<Button x:Name="hello" Width="100" Height="35"></Button>
</Grid>
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.
.Net Core 3, Preview 7
Tried under VS Code and VS Enterprise 2019 16.3 Preview 1.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Vatsan Madhavan [email protected] Sent: Wednesday, July 24, 2019 4:05:42 PM To: dotnet/core [email protected] Cc: Danny McNaught [email protected]; Mention [email protected] Subject: Re: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
@SFC-Sargehttps://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. @jkoritzinskyhttps://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, @jeffschwMSFThttps://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 GitHubhttps://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 threadhttps://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.
Removed the
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Danny McNaught Sent: Wednesday, July 24, 2019 4:09:22 PM To: dotnet/core [email protected]; dotnet/core [email protected] Cc: Mention [email protected] 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 Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Vatsan Madhavan [email protected] Sent: Wednesday, July 24, 2019 4:05:42 PM To: dotnet/core [email protected] Cc: Danny McNaught [email protected]; Mention [email protected] Subject: Re: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
@SFC-Sargehttps://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. @jkoritzinskyhttps://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, @jeffschwMSFThttps://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 GitHubhttps://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 threadhttps://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.
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 Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Danny McNaught Sent: Wednesday, July 24, 2019 4:11:58 PM To: dotnet/core [email protected]; dotnet/core [email protected] Cc: Mention [email protected] Subject: RE: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
Removed the
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Danny McNaught Sent: Wednesday, July 24, 2019 4:09:22 PM To: dotnet/core [email protected]; dotnet/core [email protected] Cc: Mention [email protected] 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 Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Vatsan Madhavan [email protected] Sent: Wednesday, July 24, 2019 4:05:42 PM To: dotnet/core [email protected] Cc: Danny McNaught [email protected]; Mention [email protected] Subject: Re: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
@SFC-Sargehttps://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. @jkoritzinskyhttps://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, @jeffschwMSFThttps://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 GitHubhttps://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 threadhttps://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.
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 Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Danny McNaught Sent: Wednesday, July 24, 2019 4:14:11 PM To: dotnet/core [email protected]; dotnet/core [email protected] Cc: Mention [email protected] 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 Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Danny McNaught Sent: Wednesday, July 24, 2019 4:11:58 PM To: dotnet/core [email protected]; dotnet/core [email protected] Cc: Mention [email protected] Subject: RE: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
Removed the
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Danny McNaught Sent: Wednesday, July 24, 2019 4:09:22 PM To: dotnet/core [email protected]; dotnet/core [email protected] Cc: Mention [email protected] 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 Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Vatsan Madhavan [email protected] Sent: Wednesday, July 24, 2019 4:05:42 PM To: dotnet/core [email protected] Cc: Danny McNaught [email protected]; Mention [email protected] Subject: Re: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
@SFC-Sargehttps://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. @jkoritzinskyhttps://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, @jeffschwMSFThttps://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 GitHubhttps://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 threadhttps://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 Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Danny McNaught Sent: Wednesday, July 24, 2019 4:17:51 PM To: dotnet/core [email protected]; dotnet/core [email protected] Cc: Mention [email protected] 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 Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Danny McNaught Sent: Wednesday, July 24, 2019 4:14:11 PM To: dotnet/core [email protected]; dotnet/core [email protected] Cc: Mention [email protected] 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 Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Danny McNaught Sent: Wednesday, July 24, 2019 4:11:58 PM To: dotnet/core [email protected]; dotnet/core [email protected] Cc: Mention [email protected] Subject: RE: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
Removed the
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Danny McNaught Sent: Wednesday, July 24, 2019 4:09:22 PM To: dotnet/core [email protected]; dotnet/core [email protected] Cc: Mention [email protected] 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 Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Vatsan Madhavan [email protected] Sent: Wednesday, July 24, 2019 4:05:42 PM To: dotnet/core [email protected] Cc: Danny McNaught [email protected]; Mention [email protected] Subject: Re: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
@SFC-Sargehttps://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. @jkoritzinskyhttps://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, @jeffschwMSFThttps://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 GitHubhttps://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 threadhttps://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 https://github.com/dotnet/wpf/issues/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:[email protected] USPS e-Mail: mailto:[email protected] Home e-Mail : mailto:[email protected]
Suite 201 2610 Wycliff Rd. Raleigh, NC 27607-3073
From: Jeff Schwartz [email protected] Sent: Wednesday, July 24, 2019 4:38:39 PM To: dotnet/core [email protected] Cc: Danny McNaught [email protected]; Mention [email protected] Subject: Re: [dotnet/core] .NET Core 3.0.0 Preview 7 (#3075)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://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 threadhttps://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. WpfApp33.zip
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. Using Preview 7 bits (3.0.100-preview7-012717).
@SFC-Sarge What version of the SDK were you using?
With
Some ReadyToRun compilations emitted warnings, indicating potential missing dependencies. Missing dependencies could potentially cause runtime failures. To show the warnings, set the PublishReadyToRunShowWarnings property to true. 2>WpfApp33 -> D:\Workspaces\Training\WpfApp33\WpfApp33\bin\X64\Release\netcoreapp3.0\win-x64\publish
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== ========== Publish: 1 succeeded, 0 failed, 0 skipped ==========
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: Could not load type 'System.Transactions.Transaction' from assembly 'System.Private.Xml, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. while resolving 0x1000162 - System.Transactions.Transaction.
and others in attached document.
WPF Publish with Net Core 3.docx
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 https://github.com/mono/linker/issues/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.