-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for DefineConstants and LangVersion to Buildalyzer.Work…
…spaces (#86)
- Loading branch information
1 parent
7f545d9
commit df80c42
Showing
9 changed files
with
106 additions
and
4 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
2 changes: 1 addition & 1 deletion
2
...cts/SdkProjectWithImportedProps/Class1.cs → ...NetCoreProjectWithImportedProps/Class1.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
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
tests/projects/SdkNetStandardProjectWithConstants/Class1.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,24 @@ | ||
using System; | ||
|
||
namespace SdkNetStandardProject | ||
{ | ||
#if DEF1 | ||
public class Class1 | ||
{ | ||
public void Foo() | ||
{ | ||
Console.WriteLine("Bar"); | ||
} | ||
} | ||
#endif | ||
|
||
#if DEF2 | ||
public class Class2 | ||
{ | ||
public void Foo() | ||
{ | ||
Console.WriteLine("Bar"); | ||
} | ||
} | ||
#endif | ||
} |
8 changes: 8 additions & 0 deletions
8
tests/projects/SdkNetStandardProjectWithConstants/SdkNetStandardProjectWithConstants.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,8 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<DefineConstants>DEF2</DefineConstants> | ||
</PropertyGroup> | ||
|
||
</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