-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
!WIP! Employ new .NET Core projects (with "net45" Target FW)
TODO: * project.assets.json on obj dir => dotnet/sdk#980 * R# sdk: error with installation detection => https://youtrack.jetbrains.com/issue/RSRP-463584
- Loading branch information
Showing
7 changed files
with
132 additions
and
2 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
46 changes: 46 additions & 0 deletions
46
Src/ImplicitNullability.Plugin.Tests/ImplicitNullability.Plugin.Tests.R20171.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,46 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net45</TargetFramework> | ||
<RootNamespace>ImplicitNullability.Plugin.Tests</RootNamespace> | ||
<!-- <BaseIntermediateOutputPath>obj\R20171\</BaseIntermediateOutputPath> doesn't work :/ --> | ||
<IntermediateOutputPath>obj\R20171\</IntermediateOutputPath> <!-- TODO: what about the project.assets.json ?? --> | ||
<EnableDefaultItems>false</EnableDefaultItems> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||
<DefineConstants>TRACE;DEBUG;NET45;RESHARPER20171</DefineConstants> | ||
<OutputPath>bin\R20171\Debug\</OutputPath> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | ||
<DefineConstants>TRACE;RELEASE;NET45;RESHARPER20171</DefineConstants> | ||
<OutputPath>bin\R20171\Release\</OutputPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="**\*.cs" Exclude="obj\**;Packages\**;test\data\**" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="test\data\nuget.config" /> | ||
<None Include="test\data\**\*.cs" /> | ||
<None Include="test\data\**\*.gold" /> | ||
<None Include="ExternalAnnotations\.NETFramework\System.Web\4.0.0.0.Nullness.Gen.xml"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="JetBrains.ReSharper.SDK.Tests" Version="2017.1.20170309.135707-eap04" /> | ||
<PackageReference Include="FakeItEasy" Version="2.3.2" /> | ||
<PackageReference Include="ncalc" Version="1.3.8" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\ImplicitNullability.Plugin\ImplicitNullability.Plugin.R20171.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
18 changes: 18 additions & 0 deletions
18
Src/ImplicitNullability.Plugin.Tests/Infrastructure/Compatibility.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 @@ | ||
#if RESHARPER20161 || RESHARPER20162 || RESHARPER20163 | ||
using System; | ||
using JetBrains.Annotations; | ||
using JetBrains.ReSharper.Psi.Tree; | ||
|
||
namespace ImplicitNullability.Plugin.Tests.Infrastructure | ||
{ | ||
public static class Compatibility | ||
{ | ||
[CanBeNull] | ||
public static ITreeNode FindPreviousNode([NotNull] this ITreeNode node, [NotNull] Func<ITreeNode, TreeNodeActionType> predicate) | ||
{ | ||
return node.FindPrevNode(predicate); | ||
} | ||
} | ||
} | ||
|
||
#endif |
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
42 changes: 42 additions & 0 deletions
42
Src/ImplicitNullability.Plugin/ImplicitNullability.Plugin.R20171.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,42 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net45</TargetFramework> | ||
<RootNamespace>ImplicitNullability.Plugin</RootNamespace> | ||
<!-- <BaseIntermediateOutputPath>obj\R20171\</BaseIntermediateOutputPath> doesn't work :/ --> | ||
<IntermediateOutputPath>obj\R20171\</IntermediateOutputPath> <!-- TODO: what about the project.assets.json ?? --> | ||
<EnableDefaultItems>false</EnableDefaultItems> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||
<DefineConstants>TRACE;DEBUG;NET45;RESHARPER20171</DefineConstants> | ||
<OutputPath>bin\R20171\Debug\</OutputPath> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | ||
<DefineConstants>TRACE;RELEASE;NET45;RESHARPER20171</DefineConstants> | ||
<OutputPath>bin\R20171\Release\</OutputPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\..\Shared\Src\ReSharperExtensionsShared\Debugging\DebugUtility.cs"> | ||
<Link>ReSharperExtensionsShared\DebugUtility.cs</Link> | ||
</Compile> | ||
<Compile Include="..\..\Shared\Src\ReSharperExtensionsShared\Highlighting\SimpleTreeNodeHighlightingBase.cs"> | ||
<Link>ReSharperExtensionsShared\SimpleTreeNodeHighlightingBase.cs</Link> | ||
</Compile> | ||
<Compile Include="**\*.cs" Exclude="obj\**" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="JetBrains.ReSharper.SDK" Version="2017.1.20170309.135707-eap04" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\ImplicitNullability.Plugin.VsFormatDefinitions\ImplicitNullability.Plugin.VsFormatDefinitions.csproj" /> | ||
</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