Skip to content

Commit

Permalink
Standardization 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinAllen committed May 15, 2024
1 parent 284f9e6 commit 25ab50b
Show file tree
Hide file tree
Showing 11 changed files with 118 additions and 77 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release_build_and_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 'Build and Deploy'

on:
workflow_dispatch:

env:
VERSION: 1.0.${{ github.run_number }}

jobs:
build:
runs-on: macos-12

steps:
- uses: actions/checkout@v4

- name: 1. Versioning Release
run: |
sed -i -e 's/1.0/${{ env.VERSION }}/g' ./AddinInfo.cs
cat ./AddinInfo.cs
working-directory: src/CodingWithCalvin.OpenBinFolder

- name: 2. Restoring Packages
run: dotnet restore src/CodingWithCalvin.OpenBinFolder.sln

- name: 4. Building
run: /Applications/Visual\ Studio.app/Contents/MacOS/vstool build --configuration:Release ${{ github.workspace }}/src/CodingWithCalvin.OpenBinFolder.sln

- name: 5. Packing
run: /Applications/Visual\ Studio.app/Contents/MacOS/vstool setup pack ${{ github.workspace }}/src/CodingWithCalvin.OpenBinFolder/bin/Release/net7.0/CodingWithCalvin.OpenBinFolder.dll -d:${{ github.workspace }}/src

- name: 6. Create Tag & Release
uses: ncipollo/release-action@v1.14.0
with:
artifacts: ./src/*.mpack
generateReleaseNotes: true
makeLatest: true
token: ${{ secrets.GH_SECRET }}
commit: ${{ github.sha }}
tag: ${{ env.VERSION }}
8 changes: 0 additions & 8 deletions CodingWithCalvin.OpenBinFolder.VS4Mac/AddinInfo.cs

This file was deleted.

13 changes: 0 additions & 13 deletions CodingWithCalvin.OpenBinFolder.VS4Mac/Manifest.addin.xml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Calvin A. Allen
Copyright (c) 2023 Coding With Calvin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@

Open Bin Folder is an extension for Visual Studio for Mac that, when triggered on a project, opens that project's bin folder in Finder.

Read more on the [release announcement I posted to my blog](https://www.codingwithcalvin.net/introducing-the-open-bin-folder-visual-studio-for-mac-extension/)
## License

[![License - MIT](https://img.shields.io/github/license/CodingWithCalvin/VS4Mac-OpenBinFolder?style=for-the-badge)](https://img.shields.io/github/license/codingwithcalvin/VS4Mac-OpenBinFolder?style=for-the-badge)

## Build Status

![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/CodingWithCalvin/VS4Mac-OpenBinFolder/release_build_and_deploy.yml?style=for-the-badge)

## Installation

Until this extension can be made available through public extension source channels, you will need to install it manually.

1. Download the `*.mpack` file from the [most recent release here on the GitHub repository](https://github.com/CalvinAllen/vs4mac-openbinfolder/releases) to your Mac
1. Download the `*.mpack` file from the [most recent release here on the GitHub repository](https://github.com/codingwithcalvin/vs4mac-openbinfolder/releases) to your Mac
i. ![Download the Latest Release](./resources/download-release.png)
2. From within Visual Studio for Mac, open the 'Extensions' dialog from the main menu
i. ![Extension Menu Option](./resources/extension-menu.png)
Expand All @@ -23,10 +29,6 @@ Until this extension can be made available through public extension source chann

Enjoy!

## Code of Conduct

Be nice to one another or I will, without hesitation, ban you from this repo. Period.

## Contributing
## Contributions

I always, 100%, welcome issues and PRs!
Contributions are welcome! Issues, PRs, etc. While it may seem this extension is "done", who knows what the future may hold for it?
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 25.0.1705.4
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodingWithCalvin.OpenBinFolder.VS4Mac", "CodingWithCalvin.OpenBinFolder.VS4Mac\CodingWithCalvin.OpenBinFolder.VS4Mac.csproj", "{29E6E9A9-12D3-403C-8832-FFF372C14C26}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{29E6E9A9-12D3-403C-8832-FFF372C14C26}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{29E6E9A9-12D3-403C-8832-FFF372C14C26}.Debug|Any CPU.Build.0 = Debug|Any CPU
{29E6E9A9-12D3-403C-8832-FFF372C14C26}.Release|Any CPU.ActiveCfg = Release|Any CPU
{29E6E9A9-12D3-403C-8832-FFF372C14C26}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D7D76F47-DDE1-42B4-9D71-BD48BACED69C}
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 25.0.1705.4
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodingWithCalvin.OpenBinFolder", "CodingWithCalvin.OpenBinFolder\CodingWithCalvin.OpenBinFolder.csproj", "{29E6E9A9-12D3-403C-8832-FFF372C14C26}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{29E6E9A9-12D3-403C-8832-FFF372C14C26}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{29E6E9A9-12D3-403C-8832-FFF372C14C26}.Debug|Any CPU.Build.0 = Debug|Any CPU
{29E6E9A9-12D3-403C-8832-FFF372C14C26}.Release|Any CPU.ActiveCfg = Release|Any CPU
{29E6E9A9-12D3-403C-8832-FFF372C14C26}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D7D76F47-DDE1-42B4-9D71-BD48BACED69C}
EndGlobalSection
EndGlobal
8 changes: 8 additions & 0 deletions src/CodingWithCalvin.OpenBinFolder/AddinInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;
using Mono.Addins;

[assembly: Addin(Id = "OpenBinFolder", Namespace = "CodingWithCalvin", Version = "1.0")]
[assembly: AddinName("Open Bin Folder")]
[assembly: AddinCategory("IDE extensions")]
[assembly: AddinDescription("A Visual Studio for Mac extension that adds a menu command to each project that opens that project's bin/output folder in Finder.")]
[assembly: AddinAuthor("Coding With Calvin")]
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<PropertyGroup Condition=" '$(RunConfiguration)' == 'Default' ">
<StartAction>Program</StartAction>
<StartProgram>\Applications\Visual Studio.app\Contents\MacOS\VisualStudio</StartProgram>
<StartArguments>--no-redirect</StartArguments>
<ExternalConsole>true</ExternalConsole>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudioMac.Sdk" Version="17.5.0" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<PropertyGroup Condition=" '$(RunConfiguration)' == 'Default' ">
<StartAction>Program</StartAction>
<StartProgram>\Applications\Visual Studio.app\Contents\MacOS\VisualStudio</StartProgram>
<StartArguments>--no-redirect</StartArguments>
<ExternalConsole>true</ExternalConsole>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudioMac.Sdk" Version="17.5.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace CodingWithCalvin.OpenBinFolder.VS4Mac
namespace CodingWithCalvin.OpenBinFolder
{
public enum CommandEnum
{
Expand Down
13 changes: 13 additions & 0 deletions src/CodingWithCalvin.OpenBinFolder/Manifest.addin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>

<ExtensionModel>
<Extension path = "/MonoDevelop/Ide/Commands">
<Command id = "CodingWithCalvin.OpenBinFolder.CommandEnum.OpenBinFolder"
_label = "Open Bin Folder"
defaultHandler = "CodingWithCalvin.OpenBinFolder.OpenBinFolderCommand" />
</Extension>

<Extension path="/MonoDevelop/Ide/ContextMenu/ProjectPad">
<CommandItem id="CodingWithCalvin.OpenBinFolder.CommandEnum.OpenBinFolder" />
</Extension>
</ExtensionModel>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using MonoDevelop.Projects;
using System.Diagnostics;

namespace CodingWithCalvin.OpenBinFolder.VS4Mac
namespace CodingWithCalvin.OpenBinFolder
{
public class OpenBinFolderCommand : CommandHandler
{
Expand Down

0 comments on commit 25ab50b

Please sign in to comment.