Skip to content

Commit 6ff00d8

Browse files
committed
update to 0.10 avalonia.
1 parent 7a1de3c commit 6ff00d8

File tree

16 files changed

+30
-35
lines changed

16 files changed

+30
-35
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"request": "launch",
1212
//"preLaunchTask": "build",
1313
// If you have changed target frameworks, make sure to update the program path.
14-
"program": "${workspaceRoot}/AvalonStudio/AvalonStudio/bin/Debug/netcoreapp2.2/AvalonStudio.dll",
14+
"program": "${workspaceRoot}/AvalonStudio/AvalonStudio/bin/Debug/net5.0/AvalonStudio.dll",
1515
"args": [],
1616
"cwd": "${workspaceRoot}/AvalonStudio/AvalonStudio",
1717
// For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window

AvalonStudio/AvalonStudio.Controls.Editor/CodeEditor.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -285,17 +285,17 @@ void tunneledKeyDownHandler(object send, KeyEventArgs ee)
285285
{
286286
if (s.Sender == this)
287287
{
288-
if (s.OldValue != null)
288+
if (s.OldValue.Value != null)
289289
{
290-
foreach (var renderer in (ObservableCollection<IBackgroundRenderer>)s.OldValue)
290+
foreach (var renderer in s.OldValue.Value)
291291
{
292292
TextArea.TextView.BackgroundRenderers.Remove(renderer);
293293
}
294294
}
295295

296-
if (s.NewValue != null)
296+
if (s.NewValue.Value != null)
297297
{
298-
foreach (var renderer in (ObservableCollection<IBackgroundRenderer>)s.NewValue)
298+
foreach (var renderer in s.NewValue.Value)
299299
{
300300
TextArea.TextView.BackgroundRenderers.Add(renderer);
301301
}
@@ -307,17 +307,17 @@ void tunneledKeyDownHandler(object send, KeyEventArgs ee)
307307
{
308308
if (s.Sender == this)
309309
{
310-
if (s.OldValue != null)
310+
if (s.OldValue.Value != null)
311311
{
312-
foreach (var renderer in (ObservableCollection<IVisualLineTransformer>)s.OldValue)
312+
foreach (var renderer in s.OldValue.Value)
313313
{
314314
TextArea.TextView.LineTransformers.Remove(renderer);
315315
}
316316
}
317317

318-
if (s.NewValue != null)
318+
if (s.NewValue.Value != null)
319319
{
320-
foreach (var renderer in (ObservableCollection<IVisualLineTransformer>)s.NewValue)
320+
foreach (var renderer in s.NewValue.Value)
321321
{
322322
TextArea.TextView.LineTransformers.Add(renderer);
323323
}

AvalonStudio/AvalonStudio.Controls.Standard/AvalonStudio.Controls.Standard.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<ItemGroup>
1515
<PackageReference Include="Avalonia" />
1616
<PackageReference Include="Avalonia.Controls.DataGrid" />
17-
<PackageReference Include="DynamicData" Version="6.16.2" />
17+
<PackageReference Include="DynamicData" Version="7.1.1" />
1818
<PackageReference Include="GitInfo" Version="2.0.20">
1919
<PrivateAssets>all</PrivateAssets>
2020
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

AvalonStudio/AvalonStudio.Languages.Xaml/AvalonStudio.Languages.Xaml.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.2</TargetFramework>
4+
<TargetFramework>net5.0</TargetFramework>
55
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
66
<TieredCompilation>True</TieredCompilation>
77
</PropertyGroup>

AvalonStudio/AvalonStudio.Projects.OmniSharp/AvalonStudio.Projects.OmniSharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" />
2020
<PackageReference Include="Microsoft.CodeAnalysis.Features" />
2121
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" />
22-
<PackageReference Include="RestSharp.NetCore" Version="105.2.4-rc4-24214-01" />
22+
<PackageReference Include="RestSharp" Version="106.11.7" />
2323
<PackageReference Include="System.Net.Primitives" Version="4.3.1" />
2424
<PackageReference Include="System.Security.Principal" Version="4.3.0" />
2525
</ItemGroup>

AvalonStudio/AvalonStudio.Windows.Installer/AvalonStudio.Installer.wixproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@
7474
<Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" />
7575
</Target>
7676
<Target Name="BeforeBuild">
77-
<Exec Command="dotnet publish ..\AvalonStudio\AvalonStudio.csproj -c $(Configuration) -f netcoreapp3.0 -r win7-x64" />
78-
<Exec Command="dotnet publish ..\AvalonStudioBuild\AvalonStudioBuild.csproj -c $(Configuration) -f netcoreapp3.0 -r win7-x64" />
79-
<GetAssemblyIdentity AssemblyFiles="..\AvalonStudio\bin\$(Configuration)\netcoreapp3.0\win7-x64\AvalonStudio.dll">
77+
<Exec Command="dotnet publish ..\AvalonStudio\AvalonStudio.csproj -c $(Configuration) -f net5.0 -r win7-x64" />
78+
<Exec Command="dotnet publish ..\AvalonStudioBuild\AvalonStudioBuild.csproj -c $(Configuration) -f net5.0 -r win7-x64" />
79+
<GetAssemblyIdentity AssemblyFiles="..\AvalonStudio\bin\$(Configuration)\net5.0\win7-x64\AvalonStudio.dll">
8080
<Output TaskParameter="Assemblies" ItemName="AssemblyVersion" />
8181
</GetAssemblyIdentity>
8282
<PropertyGroup>
83-
<DefineConstants>BuildVersion=%(AssemblyVersion.Version);BasePathAS=..\AvalonStudio\bin\$(Configuration)\netcoreapp3.0\win7-x64\publish;BasePathAB=..\AvalonStudioBuild\bin\$(Configuration)\netcoreapp3.0\win7-x64\publish</DefineConstants>
83+
<DefineConstants>BuildVersion=%(AssemblyVersion.Version);BasePathAS=..\AvalonStudio\bin\$(Configuration)\net5.0\win7-x64\publish;BasePathAB=..\AvalonStudioBuild\bin\$(Configuration)\net5.0\win7-x64\publish</DefineConstants>
8484
</PropertyGroup>
8585
<HeatDirectory OutputFile="ComponentsGeneratedAS.wxs" PreprocessorVariable="var.BasePathAS" DirectoryRefId="INSTALLASFOLDER" ComponentGroupName="PublishedComponentsAS" SuppressCom="True" Directory="..\AvalonStudio\bin\$(Configuration)\netcoreapp3.0\win7-x64\publish" SuppressFragments="True" SuppressRegistry="True" SuppressRootDirectory="True" AutoGenerateGuids="False" GenerateGuidsNow="true" ToolPath="$(WixToolPath)" />
8686
<HeatDirectory OutputFile="ComponentsGeneratedASB.wxs" PreprocessorVariable="var.BasePathAB" DirectoryRefId="INSTALLABFOLDER" ComponentGroupName="PublishedComponentsAB" SuppressCom="True" Directory="..\AvalonStudioBuild\bin\$(Configuration)\netcoreapp3.0\win7-x64\publish" SuppressFragments="True" SuppressRegistry="True" SuppressRootDirectory="True" AutoGenerateGuids="False" GenerateGuidsNow="true" ToolPath="$(WixToolPath)" />

AvalonStudio/AvalonStudio/App.paml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
<StyleInclude Source="avares://AvalonStudio.Debugging/Icons/Icons.xaml" />
2323
<StyleInclude Source="avares://AvalonStudio.Controls.Standard/SolutionExplorer/Icons/Icons.xaml" />
2424
<StyleInclude Source="avares://AvalonStudio.Languages.Xaml/AvaloniaPreviewer.xaml" />
25-
<StyleInclude Source="avares://Dock.Avalonia.Themes.Default/DefaultTheme.xaml"/>
26-
<StyleInclude Source="avares://Dock.Avalonia.Themes.Metro/DefaultTheme.xaml"/>
25+
<StyleInclude Source="avares://Dock.Avalonia.Themes.Default/DefaultTheme.axaml"/>
2726
<StyleInclude Source="avares://VtNetCore.Avalonia/VirtualTerminalControl.xaml" />
2827

2928
<Style Selector="shell|MetroWindow /template/ Button#minimiseButton">

AvalonStudio/AvalonStudio/AvalonStudio.csproj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
5+
<TargetFrameworks>net5.0</TargetFrameworks>
66
<TieredCompilations>True</TieredCompilations>
77
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
88
<PreserveCompilationContext>true</PreserveCompilationContext>
@@ -24,7 +24,7 @@
2424
<PrivateAssets>all</PrivateAssets>
2525
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2626
</PackageReference>
27-
<PackageReference Include="System.Reflection.Emit" Version="4.6.0" />
27+
<PackageReference Include="System.Reflection.Emit" Version="4.7.0" />
2828
<PackageReference Include="Mono.Cecil" Version="0.10.3" />
2929
<PackageReference Include="Avalonia.X11" />
3030
<PackageReference Include="Avalonia.Desktop" />
@@ -37,10 +37,9 @@
3737
<PackageReference Include="System.Composition" />
3838
<PackageReference Include="System.Net.Primitives" Version="4.3.1" />
3939
<PackageReference Include="System.Security.Principal" Version="4.3.0" />
40-
<PackageReference Include="Avalonia.Angle.Windows.Natives" Version="2.1.0.2019013001" />
40+
<PackageReference Include="Avalonia.Angle.Windows.Natives" Version="2.1.0.2020091801" />
4141
<PackageReference Include="Avalonia" />
4242
<PackageReference Include="Dock.Avalonia.Themes.Default" />
43-
<PackageReference Include="Dock.Avalonia.Themes.Metro" />
4443
</ItemGroup>
4544

4645
<ItemGroup>

AvalonStudio/AvalonStudioBuild/AvalonStudioBuild.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>netcoreapp3.0</TargetFrameworks>
5+
<TargetFrameworks>net5.0</TargetFrameworks>
66
<AssemblyName>avalon</AssemblyName>
77
<TieredCompilation>True</TieredCompilation>
88
<PreserveCompilationContext>true</PreserveCompilationContext>

AvalonStudio/Avalonia.Designer.HostApp/Avalonia.Designer.HostApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFrameworks>netcoreapp2.0</TargetFrameworks>
4+
<TargetFrameworks>net5.0</TargetFrameworks>
55
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
66
<TieredCompilation>True</TieredCompilation>
77
</PropertyGroup>

AvaloniaEdit

Submodule AvaloniaEdit updated 37 files

Directory.Build.targets

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<Project>
22

33
<PropertyGroup>
4-
<AvaloniaBehaviorsVersion>0.10.0-preview3</AvaloniaBehaviorsVersion>
5-
<AvaloniaVersion>0.10.0-preview3</AvaloniaVersion>
6-
<DockVersion>0.10.0-preview3</DockVersion>
4+
<AvaloniaBehaviorsVersion>0.10.0</AvaloniaBehaviorsVersion>
5+
<AvaloniaVersion>0.10.0</AvaloniaVersion>
6+
<DockVersion>0.10.0</DockVersion>
77
<GitInfoVersion>2.0.20</GitInfoVersion>
88
<MicrosoftExtensionsDependencyModelVersion>2.0.4</MicrosoftExtensionsDependencyModelVersion>
99
<NewtonsoftJsonVersion>12.0.2</NewtonsoftJsonVersion>
10-
<ReactiveUIVersion>11.5.17</ReactiveUIVersion>
10+
<ReactiveUIVersion>12.1.1</ReactiveUIVersion>
1111
<RoslynVersion>3.6.0</RoslynVersion>
1212
<SystemCompositionVersion>1.0.31</SystemCompositionVersion>
1313
<SystemDiagnosticsProcessVersion>4.3.0</SystemDiagnosticsProcessVersion>
@@ -48,7 +48,6 @@
4848
<PackageReference Update="Dock.Avalonia" Version="$(DockVersion)" />
4949
<PackageReference Update="Dock.Model.ReactiveUI" Version="$(DockVersion)" />
5050
<PackageReference Update="Dock.Avalonia.Themes.Default" Version="$(DockVersion)" />
51-
<PackageReference Update="Dock.Avalonia.Themes.Metro" Version="$(DockVersion)" />
5251
</ItemGroup>
5352

5453
<ItemGroup>

nuget.config

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
<add key="XamlBehaviors" value="https://www.myget.org/F/xamlbehaviors-nightly/api/v2" />
88
<add key="sharpgen" value="https://www.myget.org/F/sharpgentools/api/v3/index.json" />
99
<add key="cli-deps" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" />
10-
<add key="netcore" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
11-
<add key="Roslyn Nightlies" value="https://dotnet.myget.org/F/roslyn/api/v3/index.json" />
1210
<add key="DockNightly" value="https://www.myget.org/F/dock-nightly/api/v2" />
1311
</packageSources>
1412
</configuration>

0 commit comments

Comments
 (0)