Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 36 additions & 24 deletions ShowMeTheXAML.MSBuild/Uno.ShowMeTheXAML.MSBuild.csproj
Original file line number Diff line number Diff line change
@@ -1,28 +1,40 @@
<Project Sdk="MSBuild.Sdk.Extras">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;xamarinios10;monoandroid90;monoandroid10.0;uap10.0.17763</TargetFrameworks>
<PackageId>Uno.ShowMeTheXAML.MSBuild</PackageId>
<OutputType>Library</OutputType>
<IsTool>True</IsTool>
<IncludeBuildOutput>True</IncludeBuildOutput>
</PropertyGroup>

<PropertyGroup>
<DefineConstants>$(DefineConstants);__UNO__</DefineConstants>
</PropertyGroup>

<ItemGroup>
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />

<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.3.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<_AllTargetFrameworks Include="$(TargetFrameworks)" />

<None Include="Uno.ShowMeTheXAML.MSBuild.targets" Pack="True" PackagePath="@(_AllTargetFrameworks->'build/%(Identity)/$(PackageId).targets')" />
</ItemGroup>
<PropertyGroup>
<TargetFrameworks>netstandard2.0;xamarinios10;monoandroid90;monoandroid10.0;uap10.0.17763</TargetFrameworks>
<OutputType>Library</OutputType>
<IsTool>True</IsTool>
<IncludeBuildOutput>True</IncludeBuildOutput>
</PropertyGroup>

<!-- NuGet package metadata -->
<PropertyGroup>
<Title>Uno.ShowMeTheXAML.MSBuild</Title>
<Authors>nventive</Authors>
<Owners>nventive</Owners>
<Copyright>Copyright 2020</Copyright>
<Description>ShowMeTheXAML library for providing a simple way to display a control and its corresponding XAML.</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/unoplatform/ShowMeTheXAML</PackageProjectUrl>
<PackageId>Uno.ShowMeTheXAML.MSBuild</PackageId>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
</PropertyGroup>

<PropertyGroup>
<DefineConstants>$(DefineConstants);__UNO__</DefineConstants>
</PropertyGroup>

<ItemGroup>
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />

<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.3.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<_AllTargetFrameworks Include="$(TargetFrameworks)" />

<None Include="Uno.ShowMeTheXAML.MSBuild.targets" Pack="True" PackagePath="@(_AllTargetFrameworks->'build/%(Identity)/$(PackageId).targets')" />
</ItemGroup>

</Project>
77 changes: 44 additions & 33 deletions ShowMeTheXAML/Uno.ShowMeTheXAML.csproj
Original file line number Diff line number Diff line change
@@ -1,37 +1,48 @@
<Project Sdk="MSBuild.Sdk.Extras">

<!-- <Import Project="..\Build.targets" /> -->

<PropertyGroup>
<TargetFrameworks>netstandard2.0;xamarinios10;MonoAndroid90;monoandroid10.0;uap10.0.17763</TargetFrameworks>
<OutputType>library</OutputType>
<RootNamespace>ShowMeTheXAML</RootNamespace>
<AssemblyName>Uno.ShowMeTheXAML</AssemblyName>
<Title>Uno.ShowMeTheXAML</Title>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
</PropertyGroup>

<PropertyGroup>
<DefineConstants>$(DefineConstants);__UNO__</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.0'">
<DefineConstants>$(DefineConstants);__WASM__</DefineConstants>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)'=='xamarinios10' or '$(TargetFramework)'=='MonoAndroid90' or '$(TargetFramework)'=='monoandroid10.0' or '$(TargetFramework)'=='netstandard2.0'">
<Reference Include="System.Xml.Linq" />

<PackageReference Include="Uno.UI" Version="3.0.0-dev.618" />
</ItemGroup>

<ItemGroup>
<Folder Include="Properties\" />
<Compile Remove="Properties\AssemblyInfo.cs" />
<Compile Remove="Properties\Resources.Designer.cs" />
<Compile Remove="Properties\Settings.Designer.cs" />
<EmbeddedResource Remove="Properties\Resources.resx" />
<None Remove="Properties\Settings.settings" />
</ItemGroup>
<!-- <Import Project="..\Build.targets" /> -->

<PropertyGroup>
<TargetFrameworks>netstandard2.0;xamarinios10;MonoAndroid90;monoandroid10.0;uap10.0.17763</TargetFrameworks>
<OutputType>library</OutputType>
<RootNamespace>ShowMeTheXAML</RootNamespace>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
</PropertyGroup>

<!-- NuGet package metadata -->
<PropertyGroup>
<Title>Uno.ShowMeTheXAML</Title>
<Authors>nventive</Authors>
<Owners>nventive</Owners>
<Copyright>Copyright 2020</Copyright>
<Description>Base classes for ShowMeTheXAML. This contains the basic control. If you are wanting to add this to your own project use ShowMeTheXAML.MSBuild.</Description>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to refer to Uno.ShowMeTheXAML.MSBuild instead to avoid confusion.

<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/unoplatform/ShowMeTheXAML</PackageProjectUrl>
<PackageId>Uno.ShowMeTheXAML</PackageId>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
</PropertyGroup>

<PropertyGroup>
<DefineConstants>$(DefineConstants);__UNO__</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.0'">
<DefineConstants>$(DefineConstants);__WASM__</DefineConstants>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)'=='xamarinios10' or '$(TargetFramework)'=='MonoAndroid90' or '$(TargetFramework)'=='monoandroid10.0' or '$(TargetFramework)'=='netstandard2.0'">
<Reference Include="System.Xml.Linq" />

<PackageReference Include="Uno.UI" Version="3.0.0-dev.618" />
</ItemGroup>

<ItemGroup>
<Folder Include="Properties\" />
<Compile Remove="Properties\AssemblyInfo.cs" />
<Compile Remove="Properties\Resources.Designer.cs" />
<Compile Remove="Properties\Settings.Designer.cs" />
<EmbeddedResource Remove="Properties\Resources.resx" />
<None Remove="Properties\Settings.settings" />
</ItemGroup>

</Project>