forked from dotnet/roslyn-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. --> | ||
<Project> | ||
<PropertyGroup> | ||
<NoWarn>$(NoWarn);NU5125;NU3005</NoWarn> | ||
|
||
<!-- Opt-out repo features --> | ||
<UsingToolXliff>false</UsingToolXliff> | ||
</PropertyGroup> | ||
|
||
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" /> | ||
|
||
<PropertyGroup> | ||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> | ||
</PropertyGroup> | ||
|
||
<Choose> | ||
<When Condition="'$(Language)' == 'VB'"> | ||
<PropertyGroup> | ||
<LangVersion>15.5</LangVersion> | ||
</PropertyGroup> | ||
</When> | ||
|
||
<When Condition="'$(Language)' == 'C#'"> | ||
<PropertyGroup> | ||
<LangVersion>8</LangVersion> | ||
</PropertyGroup> | ||
|
||
<!-- Nullable reference types --> | ||
<PropertyGroup> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
</When> | ||
</Choose> | ||
|
||
<!-- StyleCop Analyzers configuration --> | ||
<PropertyGroup> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)..\..\RoslynSDK.ruleset</CodeAnalysisRuleSet> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="StyleCop.Analyzers" Version="$(StyleCopAnalyzersVersion)" PrivateAssets="all" /> | ||
<AdditionalFiles Include="$(MSBuildThisFileDirectory)..\..\stylecop.json" Link="stylecop.json" /> | ||
<None Include="$(CodeAnalysisRuleSet)" Condition="'$(CodeAnalysisRuleSet)' != ''" Link="%(Filename)%(Extension)" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. --> | ||
<Project> | ||
<ItemGroup Condition="'$(UsingToolXUnit)' == 'true' and '$(IsUnitTestProject)' == 'true'"> | ||
<PackageReference Include="Xunit.Combinatorial" Version="$(XunitCombinatorialVersion)" /> | ||
</ItemGroup> | ||
|
||
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" /> | ||
</Project> |
18 changes: 18 additions & 0 deletions
18
tests/VisualStudio.Roslyn.SDK/Roslyn.SDK.UnitTests/ResourceLocationTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using Xunit; | ||
|
||
namespace Microsoft.CodeAnalysis.Testing | ||
{ | ||
public class ResourceLocationTests | ||
{ | ||
[Fact] | ||
[WorkItem(327, "https://github.com/dotnet/roslyn-sdk/issues/327")] | ||
public void TestDgmlHelperResources() | ||
{ | ||
Assert.NotNull(Roslyn.SyntaxVisualizer.DgmlHelper.My.Resources.Resources.SyntaxNodeLabel); | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
tests/VisualStudio.Roslyn.SDK/Roslyn.SDK.UnitTests/Roslyn.SDK.UnitTests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net472</TargetFramework> | ||
<RootNamespace>Microsoft.CodeAnalysis.Testing</RootNamespace> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="..\..\Microsoft.CodeAnalysis.Testing\Microsoft.CodeAnalysis.Testing.Utilities\WorkItemAttribute.cs" Link="WorkItemAttribute.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\..\src\VisualStudio.Roslyn.SDK\Roslyn.SDK\Roslyn.SDK.csproj" /> | ||
</ItemGroup> | ||
</Project> |