Skip to content

Commit

Permalink
Merge pull request #10 from irihitech/share-test
Browse files Browse the repository at this point in the history
Use Share project structure.
  • Loading branch information
rabbitism authored Apr 4, 2024
2 parents 5d28cd7 + 6df06e0 commit d0035be
Show file tree
Hide file tree
Showing 25 changed files with 64 additions and 35 deletions.
3 changes: 1 addition & 2 deletions sample/Sample/Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
<ApplicationManifest>app.manifest</ApplicationManifest>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
</PropertyGroup>



<ItemGroup>
<PackageReference Include="Avalonia" Version="11.0.9" />
<PackageReference Include="Avalonia.Desktop" Version="11.0.9" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Irihi.Avalonia.Shared.Common;

public static class PartNames
public static partial class PartNames
{
public const string PART_ContentPresenter = "PART_ContentPresenter";
public const string PART_HeaderPresenter = "PART_HeaderPresenter";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Irihi.Avalonia.Shared.Common;

public static class PseudoClasses
public static partial class PseudoClasses
{
public const string PC_Disabled = ":disabled";
public const string PC_Pointerover = ":pointerover";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<HasSharedItems>true</HasSharedItems>
<SharedGUID>4AFEBE77-61CA-45EB-90E8-933B1A714CC8</SharedGUID>
</PropertyGroup>
<PropertyGroup Label="Configuration">
<Import_RootNamespace>Irihi.Avalonia.Shared.ShareProject</Import_RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)Common\PartNames.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Common\PseudoClasses.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Contracts\IClearControl.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Contracts\IDialogContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Contracts\IInnerContentControl.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Contracts\IOuterContentControl.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Contracts\IPopupInnerContent.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Contracts\IPopupOuterContent.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Helpers\AvaloniaPropertyExtension.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Helpers\BindingExtension.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Helpers\ObservableExtension.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Helpers\RoutedEventExtension.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Reactive\ReadonlyDisposableCollection.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Reactive\ResultDisposable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Shapes\PureCircle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Shapes\PureRectangle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Shapes\PureRing.cs" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<ProjectGuid>{F7A8869A-C381-4445-BC80-F87739D6A496}</ProjectGuid>
<RootNamespace>Irihi.Avalonia.Shared</RootNamespace>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props"
Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"/>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props"/>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props"/>
<Import Project="Irihi.Avalonia.Shared.Public.projitems" Label="Shared"/>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets"/>
</Project>
18 changes: 15 additions & 3 deletions src/Irihi.Avalonia.Shared.sln
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Irihi.Avalonia.Shared", "Irihi.Avalonia.Shared\Irihi.Avalonia.Shared.csproj", "{2C350A8C-4253-45CE-B565-6F4275FC11CD}"
# Visual Studio Version 17
VisualStudioVersion = 17.9.34622.214
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Irihi.Avalonia.Shared", "Irihi.Avalonia.Shared\Irihi.Avalonia.Shared.csproj", "{2C350A8C-4253-45CE-B565-6F4275FC11CD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample", "..\sample\Sample\Sample.csproj", "{92C8A1A1-21CB-41B4-BAC7-1A7763300D1C}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sample", "..\sample\Sample\Sample.csproj", "{92C8A1A1-21CB-41B4-BAC7-1A7763300D1C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Irihi.Avalonia.Shared.UnitTest", "..\test\Irihi.Avalonia.Shared.UnitTest\Irihi.Avalonia.Shared.UnitTest.csproj", "{5AD4A73B-4B85-4C56-BAB3-A25D526F0B07}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Irihi.Avalonia.Shared.UnitTest", "..\test\Irihi.Avalonia.Shared.UnitTest\Irihi.Avalonia.Shared.UnitTest.csproj", "{5AD4A73B-4B85-4C56-BAB3-A25D526F0B07}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Irihi.Avalonia.Shared.Public", "Irihi.Avalonia.Shared.Public\Irihi.Avalonia.Shared.Public.shproj", "{F7A8869A-C381-4445-BC80-F87739D6A496}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -25,4 +30,11 @@ Global
{5AD4A73B-4B85-4C56-BAB3-A25D526F0B07}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5AD4A73B-4B85-4C56-BAB3-A25D526F0B07}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(SharedMSBuildProjectFiles) = preSolution
Irihi.Avalonia.Shared.ShareProject\Irihi.Avalonia.Shared.ShareProject.projitems*{2c350a8c-4253-45ce-b565-6f4275fc11cd}*SharedItemsImports = 5
Irihi.Avalonia.Shared.ShareProject\Irihi.Avalonia.Shared.ShareProject.projitems*{f7a8869a-c381-4445-bc80-f87739d6a496}*SharedItemsImports = 13
EndGlobalSection
EndGlobal
7 changes: 0 additions & 7 deletions src/Irihi.Avalonia.Shared/Attributes/DesignerItemType.cs

This file was deleted.

11 changes: 0 additions & 11 deletions src/Irihi.Avalonia.Shared/Attributes/DesignerItemTypeAttribute.cs

This file was deleted.

This file was deleted.

6 changes: 3 additions & 3 deletions src/Irihi.Avalonia.Shared/Irihi.Avalonia.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
</PropertyGroup>

<ItemGroup>
<Folder Include="MarkupExtensions\" />
<Folder Include="Property\" />
<None Include="irihi.png" Pack="true" PackagePath=""/>
<None Include="irihi.png" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Avalonia" Version="11.0.0" />
</ItemGroup>

<Import Project="..\Irihi.Avalonia.Shared.Public\Irihi.Avalonia.Shared.Public.projitems" Label="Shared" />

</Project>

0 comments on commit d0035be

Please sign in to comment.