Skip to content

Commit

Permalink
Update target framework to .NET6 (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryfu-msft authored Sep 16, 2022
1 parent 6a69b52 commit 88dc8a9
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x64</Platform>
<PublishDir>bin\x64\Release\net5.0-windows10.0.22000.0\win-x64\publish\</PublishDir>
<PublishDir>bin\x64\Release\net6.0-windows10.0.22000.0\win-x64\publish\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net5.0-windows10.0.22000.0</TargetFramework>
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
<PublishSingleFile>False</PublishSingleFile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x86</Platform>
<PublishDir>bin\x86\Release\net5.0-windows10.0.22000.0\win-x86\publish\</PublishDir>
<PublishDir>bin\x86\Release\net6.0-windows10.0.22000.0\win-x86\publish\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net5.0-windows10.0.22000.0</TargetFramework>
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
<SelfContained>true</SelfContained>
<PublishSingleFile>False</PublishSingleFile>
Expand Down
2 changes: 1 addition & 1 deletion src/WingetCreateCLI/WingetCreateCLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0-windows10.0.22000.0</TargetFramework>
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
<AssemblyName>WingetCreateCLI</AssemblyName>
<RootNamespace>Microsoft.WingetCreateCLI</RootNamespace>
<Version>1.1</Version>
Expand Down
10 changes: 7 additions & 3 deletions src/WingetCreateCore/Common/Serialization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,10 @@ public override bool EnterMapping(IPropertyDescriptor key, IObjectDescriptor val
/// </summary>
private class MultilineScalarFlowStyleEmitter : ChainedEventEmitter
{
public MultilineScalarFlowStyleEmitter(IEventEmitter nextEmitter) : base(nextEmitter) { }
public MultilineScalarFlowStyleEmitter(IEventEmitter nextEmitter)
: base(nextEmitter)
{
}

public override void Emit(ScalarEventInfo eventInfo, IEmitter emitter)
{
Expand All @@ -324,10 +327,11 @@ public override void Emit(ScalarEventInfo eventInfo, IEmitter emitter)
bool isMultiLine = new[] { '\r', '\n', '\x85', '\x2028', '\x2029' }.Any(outString.Contains);
if (isMultiLine)
{
eventInfo = new ScalarEventInfo(eventInfo.Source) {Style = ScalarStyle.Literal};
eventInfo = new ScalarEventInfo(eventInfo.Source) { Style = ScalarStyle.Literal };
}
}
}
}

this.nextEmitter.Emit(eventInfo, emitter);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/WingetCreateCore/WingetCreateCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<RootNamespace>Microsoft.WingetCreateCore</RootNamespace>
<TargetFramework>net5.0-windows10.0.22000.0</TargetFramework>
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
<Platforms>x86;x64</Platforms>
<RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Publisher>Microsoft Corporation</Publisher>
<Copyright>Microsoft Copyright</Copyright>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<Description>Test exe installer for WingetCreateCLI</Description>
<Company>Microsoft Corporation</Company>
<Authors>Microsoft Corporation</Authors>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0-windows10.0.22000.0</TargetFramework>
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
<IsPackable>false</IsPackable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Platforms>x64;x86</Platforms>
Expand Down

0 comments on commit 88dc8a9

Please sign in to comment.