Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Commit 0c62733

Browse files
committed
Move code fixes to AsyncUsageAnalyzers.CodeFixes.dll
1 parent ec4fdf5 commit 0c62733

18 files changed

+232
-40
lines changed

AsyncUsageAnalyzers.sln

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 14
4-
VisualStudioVersion = 14.0.22823.1
4+
VisualStudioVersion = 14.0.24720.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AsyncUsageAnalyzers", "AsyncUsageAnalyzers\AsyncUsageAnalyzers\AsyncUsageAnalyzers.csproj", "{4E32037D-3EE0-419A-BC68-7D28FCD453A0}"
77
EndProject
@@ -26,6 +26,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{11D3EB88
2626
build\version.ps1 = build\version.ps1
2727
EndProjectSection
2828
EndProject
29+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AsyncUsageAnalyzers.CodeFixes", "AsyncUsageAnalyzers\AsyncUsageAnalyzers.CodeFixes\AsyncUsageAnalyzers.CodeFixes.csproj", "{BA0CD420-1E79-4FBC-B023-09C03BCDFFAC}"
30+
EndProject
2931
Global
3032
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3133
Debug|Any CPU = Debug|Any CPU
@@ -44,6 +46,10 @@ Global
4446
{8ABF883C-450A-4D0E-8D50-BF8A07C82C1B}.Debug|Any CPU.Build.0 = Debug|Any CPU
4547
{8ABF883C-450A-4D0E-8D50-BF8A07C82C1B}.Release|Any CPU.ActiveCfg = Release|Any CPU
4648
{8ABF883C-450A-4D0E-8D50-BF8A07C82C1B}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{BA0CD420-1E79-4FBC-B023-09C03BCDFFAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50+
{BA0CD420-1E79-4FBC-B023-09C03BCDFFAC}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{BA0CD420-1E79-4FBC-B023-09C03BCDFFAC}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{BA0CD420-1E79-4FBC-B023-09C03BCDFFAC}.Release|Any CPU.Build.0 = Release|Any CPU
4753
EndGlobalSection
4854
GlobalSection(SolutionProperties) = preSolution
4955
HideSolutionNode = FALSE
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\..\packages\Tvl.NuGet.BuildTasks.1.0.0-alpha002\build\Tvl.NuGet.BuildTasks.props" Condition="Exists('..\..\packages\Tvl.NuGet.BuildTasks.1.0.0-alpha002\build\Tvl.NuGet.BuildTasks.props')" />
4+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
5+
<PropertyGroup>
6+
<MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
7+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
8+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
9+
<ProjectGuid>{BA0CD420-1E79-4FBC-B023-09C03BCDFFAC}</ProjectGuid>
10+
<OutputType>Library</OutputType>
11+
<AppDesignerFolder>Properties</AppDesignerFolder>
12+
<RootNamespace>AsyncUsageAnalyzers</RootNamespace>
13+
<AssemblyName>AsyncUsageAnalyzers.CodeFixes</AssemblyName>
14+
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
15+
<TargetFrameworkProfile>Profile7</TargetFrameworkProfile>
16+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
17+
</PropertyGroup>
18+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19+
<DebugSymbols>true</DebugSymbols>
20+
<DebugType>full</DebugType>
21+
<Optimize>false</Optimize>
22+
<OutputPath>bin\Debug\</OutputPath>
23+
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<ErrorReport>prompt</ErrorReport>
25+
<WarningLevel>4</WarningLevel>
26+
<DocumentationFile>bin\Debug\AsyncUsageAnalyzers.CodeFixes.xml</DocumentationFile>
27+
</PropertyGroup>
28+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29+
<DebugType>pdbonly</DebugType>
30+
<Optimize>true</Optimize>
31+
<OutputPath>bin\Release\</OutputPath>
32+
<DefineConstants>TRACE</DefineConstants>
33+
<ErrorReport>prompt</ErrorReport>
34+
<WarningLevel>4</WarningLevel>
35+
<DocumentationFile>bin\Release\AsyncUsageAnalyzers.CodeFixes.xml</DocumentationFile>
36+
</PropertyGroup>
37+
<PropertyGroup>
38+
<SignAssembly>true</SignAssembly>
39+
</PropertyGroup>
40+
<PropertyGroup>
41+
<AssemblyOriginatorKeyFile Condition="'$(KeyConfiguration)' == 'Final'">..\..\build\keys\AsyncUsageAnalyzers.snk</AssemblyOriginatorKeyFile>
42+
<AssemblyOriginatorKeyFile Condition="'$(KeyConfiguration)' != 'Final'">..\..\build\keys\AsyncUsageAnalyzers.dev.snk</AssemblyOriginatorKeyFile>
43+
</PropertyGroup>
44+
<ItemGroup>
45+
<Compile Include="Helpers\RenameHelper.cs" />
46+
<Compile Include="Naming\AvoidAsyncSuffixCodeFixProvider.cs" />
47+
<Compile Include="Naming\UseAsyncSuffixCodeFixProvider.cs" />
48+
<Compile Include="Properties\AssemblyInfo.cs" />
49+
<Compile Include="Usage\UseConfigureAwaitCodeFixProvider.cs" />
50+
</ItemGroup>
51+
<ItemGroup>
52+
<None Include="..\..\build\keys\AsyncUsageAnalyzers.dev.snk">
53+
<Link>AsyncUsageAnalyzers.dev.snk</Link>
54+
</None>
55+
<None Include="..\..\build\keys\AsyncUsageAnalyzers.snk">
56+
<Link>AsyncUsageAnalyzers.snk</Link>
57+
</None>
58+
<NuGetManifest Include="AsyncUsageAnalyzers.nuspec">
59+
<SubType>Designer</SubType>
60+
<Symbols>True</Symbols>
61+
<PackageAnalysis>False</PackageAnalysis>
62+
</NuGetManifest>
63+
<None Include="packages.config" />
64+
<None Include="tools\install.ps1">
65+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
66+
</None>
67+
<None Include="tools\uninstall.ps1">
68+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
69+
</None>
70+
<None Include="ReadMe.txt" />
71+
</ItemGroup>
72+
<ItemGroup>
73+
<Reference Include="Microsoft.CodeAnalysis, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
74+
<HintPath>..\..\packages\Microsoft.CodeAnalysis.Common.1.0.0\lib\portable-net45+win8\Microsoft.CodeAnalysis.dll</HintPath>
75+
<Private>True</Private>
76+
</Reference>
77+
<Reference Include="Microsoft.CodeAnalysis.CSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
78+
<HintPath>..\..\packages\Microsoft.CodeAnalysis.CSharp.1.0.0\lib\portable-net45+win8\Microsoft.CodeAnalysis.CSharp.dll</HintPath>
79+
<Private>True</Private>
80+
</Reference>
81+
<Reference Include="Microsoft.CodeAnalysis.CSharp.Workspaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
82+
<HintPath>..\..\packages\Microsoft.CodeAnalysis.CSharp.Workspaces.1.0.0\lib\portable-net45+win8\Microsoft.CodeAnalysis.CSharp.Workspaces.dll</HintPath>
83+
<Private>True</Private>
84+
</Reference>
85+
<Reference Include="Microsoft.CodeAnalysis.Workspaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
86+
<HintPath>..\..\packages\Microsoft.CodeAnalysis.Workspaces.Common.1.0.0\lib\portable-net45+win8\Microsoft.CodeAnalysis.Workspaces.dll</HintPath>
87+
<Private>True</Private>
88+
</Reference>
89+
<Reference Include="System.Collections.Immutable, Version=1.1.36.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
90+
<HintPath>..\..\packages\System.Collections.Immutable.1.1.36\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll</HintPath>
91+
<Private>True</Private>
92+
</Reference>
93+
<Reference Include="System.Composition.AttributedModel, Version=1.0.27.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
94+
<HintPath>..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.AttributedModel.dll</HintPath>
95+
<Private>False</Private>
96+
</Reference>
97+
<Reference Include="System.Composition.Convention, Version=1.0.27.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
98+
<HintPath>..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Convention.dll</HintPath>
99+
<Private>False</Private>
100+
</Reference>
101+
<Reference Include="System.Composition.Hosting, Version=1.0.27.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
102+
<HintPath>..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Hosting.dll</HintPath>
103+
<Private>False</Private>
104+
</Reference>
105+
<Reference Include="System.Composition.Runtime, Version=1.0.27.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
106+
<HintPath>..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Runtime.dll</HintPath>
107+
<Private>False</Private>
108+
</Reference>
109+
<Reference Include="System.Composition.TypedParts, Version=1.0.27.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
110+
<HintPath>..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.TypedParts.dll</HintPath>
111+
<Private>False</Private>
112+
</Reference>
113+
<Reference Include="System.Reflection.Metadata, Version=1.0.21.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
114+
<HintPath>..\..\packages\System.Reflection.Metadata.1.0.21\lib\portable-net45+win8\System.Reflection.Metadata.dll</HintPath>
115+
<Private>True</Private>
116+
</Reference>
117+
</ItemGroup>
118+
<ItemGroup>
119+
<Analyzer Include="..\..\packages\Microsoft.CodeAnalysis.Analyzers.1.0.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.Analyzers.dll" />
120+
<Analyzer Include="..\..\packages\Microsoft.CodeAnalysis.Analyzers.1.0.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll" />
121+
</ItemGroup>
122+
<ItemGroup>
123+
<ProjectReference Include="..\AsyncUsageAnalyzers\AsyncUsageAnalyzers.csproj">
124+
<Project>{4e32037d-3ee0-419a-bc68-7d28fcd453a0}</Project>
125+
<Name>AsyncUsageAnalyzers</Name>
126+
</ProjectReference>
127+
</ItemGroup>
128+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\v4.5\Microsoft.Portable.CSharp.targets" />
129+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
130+
<PropertyGroup>
131+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
132+
</PropertyGroup>
133+
<Error Condition="!Exists('..\..\packages\Tvl.NuGet.BuildTasks.1.0.0-alpha002\build\Tvl.NuGet.BuildTasks.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Tvl.NuGet.BuildTasks.1.0.0-alpha002\build\Tvl.NuGet.BuildTasks.props'))" />
134+
<Error Condition="!Exists('..\..\packages\Tvl.NuGet.BuildTasks.1.0.0-alpha002\build\Tvl.NuGet.BuildTasks.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Tvl.NuGet.BuildTasks.1.0.0-alpha002\build\Tvl.NuGet.BuildTasks.targets'))" />
135+
</Target>
136+
<Import Project="..\..\packages\Tvl.NuGet.BuildTasks.1.0.0-alpha002\build\Tvl.NuGet.BuildTasks.targets" Condition="Exists('..\..\packages\Tvl.NuGet.BuildTasks.1.0.0-alpha002\build\Tvl.NuGet.BuildTasks.targets')" />
137+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
138+
Other similar extension points exist, see Microsoft.Common.targets.
139+
<Target Name="BeforeBuild">
140+
</Target>
141+
<Target Name="AfterBuild">
142+
</Target>
143+
-->
144+
</Project>

AsyncUsageAnalyzers/AsyncUsageAnalyzers/AsyncUsageAnalyzers.nuspec renamed to AsyncUsageAnalyzers/AsyncUsageAnalyzers.CodeFixes/AsyncUsageAnalyzers.nuspec

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,18 @@
1818
<files>
1919

2020
<!-- Binaries and symbols -->
21-
<file src="bin\$Configuration$\AsyncUsageAnalyzers.dll" target="analyzers\dotnet\" />
22-
<file src="bin\$Configuration$\AsyncUsageAnalyzers.pdb" target="analyzers\dotnet\" />
21+
<file src="bin\$Configuration$\AsyncUsageAnalyzers.dll" target="analyzers\dotnet\cs" />
22+
<file src="bin\$Configuration$\AsyncUsageAnalyzers.pdb" target="analyzers\dotnet\cs" />
23+
<file src="bin\$Configuration$\AsyncUsageAnalyzers.CodeFixes.dll" target="analyzers\dotnet\cs" />
24+
<file src="bin\$Configuration$\AsyncUsageAnalyzers.CodeFixes.pdb" target="analyzers\dotnet\cs" />
2325

2426
<!-- Scripts -->
2527
<file src="tools\install.ps1" target="tools\" />
2628
<file src="tools\uninstall.ps1" target="tools\" />
2729

2830
<!-- Source code -->
29-
<file src="**\*.cs" exclude="obj\**\*.cs" target="src"/>
31+
<file src="..\AsyncUsageAnalyzers\**\*.cs" exclude="..\AsyncUsageAnalyzers\obj\**\*.cs" target="src"/>
32+
<file src="**\*.cs" exclude="obj\**\*.cs;Properties\AssemblyInfo.cs" target="src"/>
3033

3134
</files>
3235
</package>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
using System;
2+
using System.Reflection;
3+
using System.Resources;
4+
using System.Runtime.CompilerServices;
5+
using System.Runtime.InteropServices;
6+
7+
// General Information about an assembly is controlled through the following
8+
// set of attributes. Change these attribute values to modify the information
9+
// associated with an assembly.
10+
[assembly: AssemblyTitle("AsyncUsageAnalyzers.CodeFixes")]
11+
[assembly: AssemblyDescription("")]
12+
[assembly: AssemblyConfiguration("")]
13+
[assembly: AssemblyCompany("Tunnel Vision Laboratories, LLC")]
14+
[assembly: AssemblyProduct("AsyncUsageAnalyzers")]
15+
[assembly: AssemblyCopyright("Copyright © Sam Harwell 2015")]
16+
[assembly: AssemblyTrademark("")]
17+
[assembly: AssemblyCulture("")]
18+
[assembly: CLSCompliant(false)]
19+
[assembly: NeutralResourcesLanguage("en-US")]
20+
21+
// Setting ComVisible to false makes the types in this assembly not visible
22+
// to COM components. If you need to access a type in this assembly from
23+
// COM, set the ComVisible attribute to true on that type.
24+
[assembly: ComVisible(false)]
25+
26+
// Version information for an assembly consists of the following four values:
27+
//
28+
// Major Version
29+
// Minor Version
30+
// Build Number
31+
// Revision
32+
//
33+
// You can specify all the values or you can default the Build and Revision Numbers
34+
// by using the '*' as shown below:
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]
37+
[assembly: AssemblyInformationalVersion("1.0.0-dev")]
38+
39+
[assembly: InternalsVisibleTo("AsyncUsageAnalyzers.Test, PublicKey=00240000048000009400000006020000002400005253413100040000010001004900a177aa63863e06209caddd95cc3591a1a30ad53d84be6a531e4a89246078d14f2b7769aa47d5a23e6957d6a4985dffe5571dbc5bf176f2b1870fa91f558de0522109db34900d8d190b15f564f636c536bfeb844543f05362c562fe3e64e444a92e5e02a4cdf35a3d934d06b9c300512f8a70cd741d0e484c5940cd79cfbb")]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="Microsoft.CodeAnalysis.Analyzers" version="1.0.0" targetFramework="portable45-net45+win8" />
4+
<package id="Microsoft.CodeAnalysis.Common" version="1.0.0" targetFramework="portable45-net45+win8" />
5+
<package id="Microsoft.CodeAnalysis.CSharp" version="1.0.0" targetFramework="portable45-net45+win8" />
6+
<package id="Microsoft.CodeAnalysis.CSharp.Workspaces" version="1.0.0" targetFramework="portable45-net45+win8" />
7+
<package id="Microsoft.CodeAnalysis.Workspaces.Common" version="1.0.0" targetFramework="portable45-net45+win8" />
8+
<package id="Microsoft.Composition" version="1.0.27" targetFramework="portable45-net45+win8" />
9+
<package id="NuGet.CommandLine" version="2.8.3" targetFramework="portable45-net45+win8" />
10+
<package id="System.Collections.Immutable" version="1.1.36" targetFramework="portable45-net45+win8" />
11+
<package id="System.Reflection.Metadata" version="1.0.21" targetFramework="portable45-net45+win8" />
12+
<package id="Tvl.NuGet.BuildTasks" version="1.0.0-alpha002" targetFramework="portable45-net45+win8" />
13+
</packages>

0 commit comments

Comments
 (0)