Skip to content

Commit c0ec12d

Browse files
authored
Merge pull request #1 from ClydeDz/vs2019-support
Add Visual Studio 2019 support
2 parents 341ab53 + bf532d5 commit c0ec12d

File tree

15 files changed

+329
-165
lines changed

15 files changed

+329
-165
lines changed

FancyComments/FancyComments/FancyComments.csproj

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\packages\Microsoft.VSSDK.BuildTools.15.8.3252\build\Microsoft.VSSDK.BuildTools.props" Condition="Exists('..\packages\Microsoft.VSSDK.BuildTools.15.8.3252\build\Microsoft.VSSDK.BuildTools.props')" />
34
<PropertyGroup>
45
<MinimumVisualStudioVersion>$(VisualStudioVersion)</MinimumVisualStudioVersion>
56
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
7+
<NuGetPackageImportStamp>
8+
</NuGetPackageImportStamp>
69
</PropertyGroup>
710
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
811
<PropertyGroup>
@@ -68,16 +71,18 @@
6871
<Content Include="readme.md">
6972
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
7073
</Content>
74+
<Content Include="packages.config">
75+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
76+
</Content>
77+
<Content Include="extension.manifest.json">
78+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
79+
</Content>
7180
<None Include="Resources\releasenotes.md" />
7281
<None Include="Resources\license.md" />
7382
<Content Include="license.txt">
7483
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
7584
<IncludeInVSIX>true</IncludeInVSIX>
7685
</Content>
77-
<Content Include="release-notes.txt">
78-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
79-
<IncludeInVSIX>true</IncludeInVSIX>
80-
</Content>
8186
<Content Include="Resources\fancycomments-xsiz-1024x1024.png">
8287
<IncludeInVSIX>true</IncludeInVSIX>
8388
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
@@ -669,6 +674,14 @@
669674
</ItemGroup>
670675
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
671676
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
677+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
678+
<PropertyGroup>
679+
<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>
680+
</PropertyGroup>
681+
<Error Condition="!Exists('..\packages\Microsoft.VSSDK.BuildTools.15.8.3252\build\Microsoft.VSSDK.BuildTools.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.VSSDK.BuildTools.15.8.3252\build\Microsoft.VSSDK.BuildTools.props'))" />
682+
<Error Condition="!Exists('..\packages\Microsoft.VSSDK.BuildTools.15.8.3252\build\Microsoft.VSSDK.BuildTools.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.VSSDK.BuildTools.15.8.3252\build\Microsoft.VSSDK.BuildTools.targets'))" />
683+
</Target>
684+
<Import Project="..\packages\Microsoft.VSSDK.BuildTools.15.8.3252\build\Microsoft.VSSDK.BuildTools.targets" Condition="Exists('..\packages\Microsoft.VSSDK.BuildTools.15.8.3252\build\Microsoft.VSSDK.BuildTools.targets')" />
672685
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
673686
Other similar extension points exist, see Microsoft.Common.targets.
674687
<Target Name="BeforeBuild">
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "http://json.schemastore.org/vsix-publish",
3+
"categories": [ "coding", "web", "documentation" ],
4+
"identity": {
5+
"internalName": "FancyComments",
6+
"tags": [ "snippets", "snippet pack", "html", "css", "javascript", "sql", "c#", "csharp", "xml", "visual studio 2017", "visual studio 2019", "visual studio", "code snippet manager", "vsix", "sass", "open source", "scss", "fancy comments", "comments" ],
7+
"displayName": "Fancy Comments",
8+
"icon": "fancycomments-icon.png"
9+
},
10+
"overview": "readme.md",
11+
"priceCategory": "free",
12+
"publisher": "clydedsouza",
13+
"private": false,
14+
"qna": true,
15+
"repo": "https://github.com/ClydeDz/fancy-comments/"
16+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="Microsoft.VSSDK.BuildTools" version="15.8.3252" targetFramework="net452" developmentDependency="true" />
4+
</packages>
Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,45 @@
11
# Fancy Comments for Visual Studio
22

3-
[Download Fancy Coments from the Visual Studio Marketplace](http://bit.ly/fancycomments)
3+
[**Download Fancy Coments from the Visual Studio Marketplace**](http://bit.ly/fancycomments)
44

5-
Fancy Comments is a snippet pack that includes different use-cases for when you may write comments in a file. Currently, includes comment sections for languages such as HTML, CSS, JavaScript, SQL, C# and XML.
5+
Fancy Comments is a snippet pack designed to provide you with use-case specific comments, right from including a changelog table in your file to including a license snippet,
6+
to something as simple as including basic author information.
7+
The Fancy Comments Visual Studio Extension currently supports HTML, CSS, SCSS, JavaScript, C# (CSharp), SQL and XML.
68

7-
![VSTS Online Build Status](https://clydedsouza.visualstudio.com/_apis/public/build/definitions/13bd409d-3e06-45d7-a32b-eb096b318c0c/3/badge)
8-
9+
[![Build status](https://clydedsouza.visualstudio.com/Fancy%20Comments%20Snippet%20Pack/_apis/build/status/Master%20Build)](https://clydedsouza.visualstudio.com/Fancy%20Comments%20Snippet%20Pack/_build/latest?definitionId=17)
10+
![Visual Studio Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/clydedsouza.fancycomments.svg)
11+
![Visual Studio Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/clydedsouza.fancycomments.svg)
12+
![GitHub](https://img.shields.io/github/license/ClydeDz/fancy-comments.svg)
13+
14+
15+
![Fancy Comments in Visual Studio's Code Snippet Manager](https://raw.githubusercontent.com/ClydeDz/fancy-comments/master/docs/FancyComments.Web/images/anime/languages.gif)
16+
17+
18+
## How to use?
19+
20+
The Fancy Comments extends the code snippet manager of Visual Studio and allows you to insert code snippets into your editor.
21+
To insert snippets for the language you're currently writing in your editor, you can use the shortcut keys ``CTRL+K CTRL+X`` and then find Fancy Comments as a folder. Alternatively, to bring up the code snippet manager, use the shortcut keys ``CTRL+K CTRL+B``.
22+
The GIF below shows HTML Fancy Comments being used.
23+
24+
![GIF showing HTML Fancy Comments in use](https://raw.githubusercontent.com/ClydeDz/fancy-comments/master/docs/FancyComments.Web/images/anime/html-usecase.gif)
925

1026
## Feedback
11-
Fancy Comments is just in version 1.0.0 (beta) as of now and therefore you may find certain snippets/features
12-
missing. It would be great if you could create a [new issue on GitHub here](https://github.com/ClydeDz/fancy-comments/issues) and let me know what you're after and I can include
13-
that in the product backlog for next releases. Please search the issues first before creating a new one.
14-
1527

16-
## More details
17-
Please find more details in [this wiki](https://github.com/ClydeDz/fancy-comments/wiki)
18-
28+
Should you find your use case missing in the snippet pack, it would be great if you could [create a new issue on GitHub](https://github.com/ClydeDz/fancy-comments/issues) and let me know what you're after and I can include that in the product backlog for next releases. Please search the issues first before creating a new one.
29+
30+
31+
## Website
32+
33+
[https://clydedz.github.io/fancy-comments/](http://bit.ly/fancycommentsweb)
34+
35+
36+
## GitHub
37+
[https://github.com/ClydeDz/fancy-comments](https://github.com/ClydeDz/fancy-comments)
38+
39+
40+
## Facebook
41+
42+
[Follow Fancy Comments on Facebook](http://bit.ly/fancycommentsfb)
43+
1944

20-
Fancy Comments (c) 2018 [Clyde D'Souza](https://clydedsouza.net)
45+
Fancy Comments (c) 2018 [Clyde D'Souza](https://clydedsouza.net/#/)

FancyComments/FancyComments/release-notes.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

FancyComments/FancyComments/source.extension.vsixmanifest

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,24 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="044a662b-9e91-4d4a-954b-bdb7334954d6" Version="1.0.0" Language="en-US" Publisher="Clyde D'Souza" />
4+
<Identity Id="044a662b-9e91-4d4a-954b-bdb7334954d6" Version="1.0.1" Language="en-US" Publisher="Clyde D'Souza" />
55
<DisplayName>Fancy Comments</DisplayName>
66
<Description xml:space="preserve">A snippet pack for use-case specific comments, supported for HTML, CSS, JavaScript, C#, SQL and XML.</Description>
77
<MoreInfo>https://github.com/ClydeDz/fancy-comments/wiki</MoreInfo>
88
<License>license.txt</License>
9-
<ReleaseNotes>release-notes.txt</ReleaseNotes>
9+
<GettingStartedGuide>https://marketplace.visualstudio.com/items?itemName=clydedsouza.GoogleAnalyticsSnippetPack</GettingStartedGuide>
1010
<Icon>fancycomments-icon.png</Icon>
1111
<PreviewImage>fancycomments-preview.png</PreviewImage>
12-
<Tags>snippets, snippet-pack, html, css, javascript, sql, c#, csharp, xml, visual studio 2017, visual studio</Tags>
12+
<Tags>snippets;snippet pack;html;css;javascript;sql;c#;csharp;xml;visual studio 2017;visual studio 2019;visual studio;code snippet manager;vsix</Tags>
1313
</Metadata>
1414
<Installation>
1515
<!--Microsoft.VisualStudio.Pro includes all SKUs such as Community, Pro, Ultimate and Enterprise-->
16-
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="12.0" />
17-
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="14.0" />
18-
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="15.0" />
19-
<InstallationTarget Version="15.0" Id="Microsoft.VisualStudio.Community" />
20-
<InstallationTarget Version="14.0" Id="Microsoft.VisualStudio.Community" />
21-
<InstallationTarget Version="12.0" Id="Microsoft.VisualStudio.Community" />
22-
<InstallationTarget Version="[15.0,16.0)" Id="Microsoft.VisualStudio.Community" />
23-
<InstallationTarget Version="[15.0,16.0)" Id="Microsoft.VisualStudio.Enterprise" />
24-
<InstallationTarget Version="[15.0,16.0)" Id="Microsoft.VisualStudio.Pro" />
25-
<InstallationTarget Version="12.0" Id="Microsoft.VisualStudio.Enterprise" />
26-
<InstallationTarget Version="14.0" Id="Microsoft.VisualStudio.Enterprise" />
27-
<InstallationTarget Version="15.0" Id="Microsoft.VisualStudio.Enterprise" />
16+
<InstallationTarget Version="[11.0,17.0)" Id="Microsoft.VisualStudio.Community" />
17+
<InstallationTarget Version="[11.0,17.0)" Id="Microsoft.VisualStudio.Pro" />
18+
<InstallationTarget Version="[11.0,17.0)" Id="Microsoft.VisualStudio.Enterprise" />
2819
</Installation>
2920
<Prerequisites>
30-
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,16.0)" DisplayName="Visual Studio core editor" />
21+
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,)" DisplayName="Visual Studio core editor" />
3122
</Prerequisites>
3223
<Assets>
3324
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="File" Path="Snippets\snippets.pkgdef" />

0 commit comments

Comments
 (0)