Skip to content

Commit

Permalink
CODE RUB: Added commands and verified that content files are present …
Browse files Browse the repository at this point in the history
…in the output folder
  • Loading branch information
cjdutoit committed Sep 9, 2023
1 parent 7142996 commit 83d3b8f
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 64 deletions.
56 changes: 0 additions & 56 deletions Standardly/Command1.cs

This file was deleted.

2 changes: 2 additions & 0 deletions Standardly/Commands/GenerateCodeCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// ---------------------------------------------------------------

using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Microsoft;
using Microsoft.VisualStudio.Extensibility;
using Microsoft.VisualStudio.Extensibility.Commands;
Expand Down
2 changes: 2 additions & 0 deletions Standardly/Commands/ShowDocumentationCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// ---------------------------------------------------------------

using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Microsoft;
using Microsoft.VisualStudio.Extensibility;
using Microsoft.VisualStudio.Extensibility.Commands;
Expand Down
3 changes: 3 additions & 0 deletions Standardly/Commands/ShowLicenseCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
// ---------------------------------------------------------------

using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Microsoft;
using Microsoft.VisualStudio.Extensibility;
using Microsoft.VisualStudio.Extensibility.Commands;
Expand Down
2 changes: 2 additions & 0 deletions Standardly/Commands/ShowMyUsageStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// ---------------------------------------------------------------

using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Microsoft;
using Microsoft.VisualStudio.Extensibility;
using Microsoft.VisualStudio.Extensibility.Commands;
Expand Down
3 changes: 3 additions & 0 deletions Standardly/Commands/ShowTemplatesFolderCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
// ---------------------------------------------------------------

using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Microsoft;
using Microsoft.VisualStudio.Extensibility;
using Microsoft.VisualStudio.Extensibility.Commands;
Expand Down
10 changes: 2 additions & 8 deletions Standardly/Standardly.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net7.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>

Expand All @@ -14,7 +14,7 @@
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.8.13-preview-1" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.8.13-preview-1" />
<PackageReference Include="Standardly.Core" Version="1.0.10" />
<PackageReference Include="Standardly.Templates.TheStandard" Version="1.0.0.3" />
<PackageReference Include="Standardly.Templates.TheStandard" Version="1.0.0.5" />
</ItemGroup>

<ItemGroup>
Expand All @@ -23,12 +23,6 @@
</Content>
</ItemGroup>

<ItemGroup>
<Content Update="$(NuGetPackagesPath)\**\standardly.templates*\**\Templates\**\*.*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<None Update="ToolWindows\GenerateCodeToolWindowContent.xaml">
<Generator>MSBuild:Compile</Generator>
Expand Down
10 changes: 10 additions & 0 deletions Standardly/Standardly.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project>

<ItemGroup>
<Files Include="$(MSBuildThisFileDirectory)/../lib/net7.0/Templates/**/*.*" />
</ItemGroup>
<Target Name="CopyFiles" AfterTargets="Build">
<Copy SourceFiles="@(Files)" DestinationFolder="$(TargetDir)/Templates/%(RecursiveDir)" />
</Target>

</Project>
2 changes: 2 additions & 0 deletions Standardly/ToolWindows/GenerateCodeToolWindowCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// See License.txt in the project root for license information.
// ---------------------------------------------------------------

using System.Threading;
using System.Threading.Tasks;
using Microsoft.VisualStudio.Extensibility;
using Microsoft.VisualStudio.Extensibility.Commands;

Expand Down
1 change: 1 addition & 0 deletions Standardly/ToolWindows/GenerateCodeToolWindowData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// ---------------------------------------------------------------

using System.Runtime.Serialization;
using System.Threading.Tasks;
using Microsoft.VisualStudio.Extensibility.UI;

namespace Standardly.ToolWindows
Expand Down

0 comments on commit 83d3b8f

Please sign in to comment.