-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
1 parent
b639908
commit 5e48155
Showing
32 changed files
with
244 additions
and
416 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
public class ClassWithObsoleteOnGetSet | ||
{ | ||
public string PropertyToMark { [ObsoleteEx]get; [ObsoleteEx]set; } | ||
public string PropertyToMark { [ObsoleteEx] get; [ObsoleteEx] set; } | ||
} |
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 |
---|---|---|
@@ -1,14 +1,30 @@ | ||
using System; | ||
|
||
[ObsoleteEx(TreatAsErrorFromVersion = "2.0", RemoveInVersion = "4.0", Message = "Custom message.", ReplacementTypeOrMember = "NewThing")] | ||
[ObsoleteEx( | ||
TreatAsErrorFromVersion = "2.0", | ||
RemoveInVersion = "4.0", | ||
Message = "Custom message.", | ||
ReplacementTypeOrMember = "NewThing")] | ||
public interface InterfaceToMark | ||
{ | ||
[ObsoleteEx(TreatAsErrorFromVersion = "2.0", RemoveInVersion = "4.0", Message = "Custom message.", ReplacementTypeOrMember = "NewThing")] | ||
[ObsoleteEx( | ||
TreatAsErrorFromVersion = "2.0", | ||
RemoveInVersion = "4.0", | ||
Message = "Custom message.", | ||
ReplacementTypeOrMember = "NewThing")] | ||
string PropertyToMark { get; set; } | ||
|
||
[ObsoleteEx(TreatAsErrorFromVersion = "2.0", RemoveInVersion = "4.0", Message = "Custom message.", ReplacementTypeOrMember = "NewThing")] | ||
[ObsoleteEx( | ||
TreatAsErrorFromVersion = "2.0", | ||
RemoveInVersion = "4.0", | ||
Message = "Custom message.", | ||
ReplacementTypeOrMember = "NewThing")] | ||
void MethodToMark(); | ||
|
||
[ObsoleteEx(TreatAsErrorFromVersion = "2.0", RemoveInVersion = "4.0", Message = "Custom message.", ReplacementTypeOrMember = "NewThing")] | ||
[ObsoleteEx( | ||
TreatAsErrorFromVersion = "2.0", | ||
RemoveInVersion = "4.0", | ||
Message = "Custom message.", | ||
ReplacementTypeOrMember = "NewThing")] | ||
event EventHandler EventToMark; | ||
} |
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 |
---|---|---|
@@ -1,18 +1,38 @@ | ||
using System; | ||
#pragma warning disable 67 | ||
|
||
[ObsoleteEx(TreatAsErrorFromVersion = "2.0", RemoveInVersion = "4.0", Message = "Custom message.", ReplacementTypeOrMember = "NewThing")] | ||
[ObsoleteEx( | ||
TreatAsErrorFromVersion = "2.0", | ||
RemoveInVersion = "4.0", | ||
Message = "Custom message.", | ||
ReplacementTypeOrMember = "NewThing")] | ||
public struct StructToMark | ||
{ | ||
[ObsoleteEx(TreatAsErrorFromVersion = "2.0", RemoveInVersion = "4.0", Message = "Custom message.", ReplacementTypeOrMember = "NewThing")] | ||
[ObsoleteEx( | ||
TreatAsErrorFromVersion = "2.0", | ||
RemoveInVersion = "4.0", | ||
Message = "Custom message.", | ||
ReplacementTypeOrMember = "NewThing")] | ||
public string PropertyToMark { get; set; } | ||
|
||
[ObsoleteEx(TreatAsErrorFromVersion = "2.0", RemoveInVersion = "4.0", Message = "Custom message.", ReplacementTypeOrMember = "NewThing")] | ||
[ObsoleteEx( | ||
TreatAsErrorFromVersion = "2.0", | ||
RemoveInVersion = "4.0", | ||
Message = "Custom message.", | ||
ReplacementTypeOrMember = "NewThing")] | ||
public string FieldToMark; | ||
|
||
[ObsoleteEx(TreatAsErrorFromVersion = "2.0", RemoveInVersion = "4.0", Message = "Custom message.", ReplacementTypeOrMember = "NewThing")] | ||
[ObsoleteEx( | ||
TreatAsErrorFromVersion = "2.0", | ||
RemoveInVersion = "4.0", | ||
Message = "Custom message.", | ||
ReplacementTypeOrMember = "NewThing")] | ||
public void MethodToMark() { } | ||
|
||
[ObsoleteEx(TreatAsErrorFromVersion = "2.0", RemoveInVersion = "4.0", Message = "Custom message.", ReplacementTypeOrMember = "NewThing")] | ||
[ObsoleteEx( | ||
TreatAsErrorFromVersion = "2.0", | ||
RemoveInVersion = "4.0", | ||
Message = "Custom message.", | ||
ReplacementTypeOrMember = "NewThing")] | ||
public event EventHandler EventToMark; | ||
} |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,27 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks>net452;netcoreapp2.0</TargetFrameworks> | ||
<TargetFrameworks>net46;netstandard2.0</TargetFrameworks> | ||
<DebugType>portable</DebugType> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<PackageReference Include="FodyCecil" Version="2.*" /> | ||
<PackageReference Include="PepitaPackage" Version="*" /> | ||
<PackageReference Include="FodyHelpers" Version="2.*" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Compile Include="..\CommonAssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<Target Name="BuildNugets" AfterTargets="CopyFilesToOutputDirectory"> | ||
<ItemGroup> | ||
<FilesToDelete Include="$(SolutionDir)nugets\**\*.*" /> | ||
</ItemGroup> | ||
<Delete Files="@(FilesToDelete)" /> | ||
<MakeDir Directories="$(SolutionDir)nugets" /> | ||
<Copy SourceFiles="$(SolutionDir)Obsolete\bin\$(ConfigurationName)\net452\Obsolete.dll" DestinationFolder="$(SolutionDir)nugets\lib\net452" /> | ||
<Copy SourceFiles="$(SolutionDir)Obsolete\bin\$(ConfigurationName)\netstandard1.4\Obsolete.dll" DestinationFolder="$(SolutionDir)nugets\lib\netstandard1.4" /> | ||
<Copy SourceFiles="$(ProjectDir)Obsolete.Fody.nuspec" DestinationFolder="$(SolutionDir)nugets" /> | ||
<Copy SourceFiles="$(ProjectDir)bin\$(ConfigurationName)\net452\Obsolete.Fody.dll" DestinationFolder="$(SolutionDir)nugets" /> | ||
<Copy SourceFiles="$(ProjectDir)bin\$(ConfigurationName)\net452\Obsolete.Fody.pdb" DestinationFolder="$(SolutionDir)nugets" /> | ||
<PepitaPackage.CreatePackageTask NuGetBuildDirectory="$(SolutionDir)nugets" MetadataAssembly="$(ProjectDir)bin\$(ConfigurationName)\net452\Obsolete.Fody.dll" /> | ||
</Target> | ||
</Project> |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,6 +5,5 @@ public class WeavingException : Exception | |
public WeavingException(string message) | ||
: base(message) | ||
{ | ||
|
||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.