core icon indicating copy to clipboard operation
core copied to clipboard

.NET Core 3.0.0 Preview 7

Open vivmishra opened this issue 7 years ago • 78 comments

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:

vivmishra avatar Jul 23 '19 16:07 vivmishra

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 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.

    <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.

ghost avatar Jul 24 '19 17:07 ghost

@vatsan-madhavan @amit-kabra for WPF issue.

vivmishra avatar Jul 24 '19 19:07 vivmishra

@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.

vatsan-madhavan avatar Jul 24 '19 20:07 vatsan-madhavan

.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.

ghost avatar Jul 24 '19 20:07 ghost

Removed the true 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 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.

ghost avatar Jul 24 '19 20:07 ghost

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 true 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 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.

ghost avatar Jul 24 '19 20:07 ghost

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 true 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 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.

ghost avatar Jul 24 '19 20:07 ghost

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 true 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 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.

ghost avatar Jul 24 '19 20:07 ghost

@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.

vatsan-madhavan avatar Jul 24 '19 20:07 vatsan-madhavan

cc @fadimounir

jeffschwMSFT avatar Jul 24 '19 20:07 jeffschwMSFT

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)

cc @fadimounirhttps://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 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.

ghost avatar Jul 24 '19 22:07 ghost

Note: I validated this only happens in WPF, Windows Forms works correctly. WpfApp33.zip

ghost avatar Jul 24 '19 23:07 ghost

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?

fadimounir avatar Jul 24 '19 23:07 fadimounir

With true in project file I get the following Warnings:

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 ==========

ghost avatar Jul 24 '19 23:07 ghost

The version I have install is: dotnet-sdk-3.0.100-preview7-012821-win-x64.exe gotten from the download page for SDK.

ghost avatar Jul 24 '19 23:07 ghost

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.

ghost avatar Jul 24 '19 23:07 ghost

With Project file containing: true and true I get: warining like: 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

ghost avatar Jul 24 '19 23:07 ghost

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

fadimounir avatar Jul 25 '19 00:07 fadimounir

Could be related to https://github.com/mono/linker/issues/628

fadimounir avatar Jul 25 '19 00:07 fadimounir

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.

ghost avatar Jul 25 '19 00:07 ghost