Skip to content
Merged
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
3 changes: 3 additions & 0 deletions src/ThisAssembly.Project/ThisAssembly.Project.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<ProjectProperty Include="TargetFrameworkIdentifier" />
<ProjectProperty Include="TargetFrameworkMoniker" />
<ProjectProperty Include="TargetFrameworkVersion" />

<ProjectProperty Include="RuntimeIdentifier" />
<ProjectProperty Include="RuntimeIdentifiers" />
</ItemGroup>

</Project>
5 changes: 5 additions & 0 deletions src/ThisAssembly.Tests/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ public void CanUseHierarchicalMetadata()
public void CanUseProjectProperty()
=> Assert.Equal("Bar", ThisAssembly.Project.Foo);

/// <summary />
[Fact]
public void CanUseProjectProperty2()
=> Assert.NotEmpty(ThisAssembly.Project.RuntimeIdentifiers);

/// <summary />
[Fact]
public void CanUseStringsNamedArguments()
Expand Down
1 change: 1 addition & 0 deletions src/ThisAssembly.Tests/ThisAssembly.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<ProjectFileComment>$(ProjectFile)</ProjectFileComment>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<WarningsAsErrors>true</WarningsAsErrors>
<RuntimeIdentifiers>win-x64;linux-x86</RuntimeIdentifiers>
</PropertyGroup>

<Import Project="..\*\ThisAssembly*.props" />
Expand Down