Code Monkey home page Code Monkey logo

cleanbinandobj's Introduction

CleanBinAndObj

Build status

Download this extension from the VS Gallery or get the CI build.


Visual Studio extension for easy clean all bin and obj directories in solution

See the change log for changes and road map.

Features

Adds build menu sub item "Clean Bin and Obj"

License

Apache 2.0

cleanbinandobj's People

Contributors

aldobrynin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cleanbinandobj's Issues

Command name

Is it possible to expose this extension with a "command name" (so we can bind a keyboard hotkey to this extension)?

Only Installs in VS 2022 When Multiple Versions Installed

Installed product versions

  • Visual Studio: 2017 Ent (15.9.48)
  • Visual Studio: 2019 Ent (16.11.14)
  • Visual Studio: 2022 Ent (17.2.0)
  • This extension: 1.2.58

Description

Only installs to 2022 even though 2017 and 2019 also installed (https://i.imgur.com/uLh4ZEQ.png)

Steps to recreate

  1. N/A

Current behavior

See Description

Expected behavior

Should allow installing to all supported versions of VS that are present

Adapt for VS2022 ARM

first, THANKS FOR A GREAT EXTENSION!!!

Installed product versions

  • Visual Studio: 2022 Community ARM
  • This extension:1.2.58

Description

Please add the following lines to the extensions.vsixmanifest file in the <Installation> section:

    <InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,18.0)">
      <ProductArchitecture>arm64</ProductArchitecture>
    </InstallationTarget>
click here to see how the resulting `extensions.vsixmanifest` file would look like
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011">
  <Metadata>
    <Identity Id="5ea478a7-93f3-4cef-982f-0be41fea1173" Version="1.2.58" Language="en-US" Publisher="Alexander Dobrynin" />
    <DisplayName>CleanBinAndObj</DisplayName>
    <Description xml:space="preserve">Cleans all /bin and /obj directories in solution</Description>
    <MoreInfo>https://github.com/aldobrynin/CleanBinAndObj</MoreInfo>
    <License>Resources\LICENSE</License>
    <Icon>Resources\icon.png</Icon>
    <Tags>clean, cleanup, bin, obj</Tags>
  </Metadata>
  <Installation>
    <InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,18.0)">
      <ProductArchitecture>amd64</ProductArchitecture>
    </InstallationTarget>
    <InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,18.0)">
      <ProductArchitecture>arm64</ProductArchitecture>
    </InstallationTarget>
  </Installation>
  <Dependencies></Dependencies>
  <Prerequisites>
    <Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[17.0,)" DisplayName="Visual Studio core editor" />
    <Prerequisite Id="Microsoft.VisualStudio.Component.Web" Version="[17.0,)" DisplayName="Web development tools" />
  </Prerequisites>
  <Assets>
    <Asset Type="Microsoft.VisualStudio.VsPackage" Path="CleanBinAndObj.pkgdef" />
  </Assets>
</PackageManifest>
Want it to also support VS 2022 Pro and VS 2022 Enterprise? Click here to see those changes as well!
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011">
  <Metadata>
    <Identity Id="5ea478a7-93f3-4cef-982f-0be41fea1173" Version="1.2.58" Language="en-US" Publisher="Alexander Dobrynin" />
    <DisplayName>CleanBinAndObj</DisplayName>
    <Description xml:space="preserve">Cleans all /bin and /obj directories in solution</Description>
    <MoreInfo>https://github.com/aldobrynin/CleanBinAndObj</MoreInfo>
    <License>Resources\LICENSE</License>
    <Icon>Resources\icon.png</Icon>
    <Tags>clean, cleanup, bin, obj</Tags>
  </Metadata>
  <Installation>
    <InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,18.0)" >
      <ProductArchitecture>amd64</ProductArchitecture>
    </InstallationTarget>
    <InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.Pro" >
      <ProductArchitecture>amd64</ProductArchitecture>
    </InstallationTarget>
    <InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.Enterprise" >
      <ProductArchitecture>amd64</ProductArchitecture>
    </InstallationTarget>
    <InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,18.0)" >
      <ProductArchitecture>arm64</ProductArchitecture>
    </InstallationTarget>
    <InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.Pro" >
      <ProductArchitecture>arm64</ProductArchitecture>
    </InstallationTarget>
    <InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.Enterprise" >
      <ProductArchitecture>arm64</ProductArchitecture>
    </InstallationTarget>
  </Installation>
  <Dependencies></Dependencies>
  <Prerequisites>
    <Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[17.0,)" DisplayName="Visual Studio core editor" />
    <Prerequisite Id="Microsoft.VisualStudio.Component.Web" Version="[17.0,)" DisplayName="Web development tools" />
  </Prerequisites>
  <Assets>
    <Asset Type="Microsoft.VisualStudio.VsPackage" Path="CleanBinAndObj.pkgdef" />
  </Assets>
</PackageManifest>

Current behavior

Will not install on VS 2022 ARM

Expected behavior

Happily installs on VS 2022 ARM

Does not work when using right mouse button on SOLUTION.

Installed product versions

  • Microsoft Visual Studio Professional 2022 (64-bit) - Current Version 17.4.1

  • This extension: 1.2.58

Description

Does not work when using right mouse button on SOLUTION.
The following Error appears:
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

image

Are "Web development tools" really required as a prerequisite for VS2022?

When installing the vsix it required "Web development tools", and had to download and install a bunch of stuff that I would not expect to be relevant to this extension.

After installation, I used Visual Studio Installer to uncheck the "ASP.NET and web development prerequisites" component to uninstall it, and the extension still appears to work just fine.

Can the pre-requisite be removed, or is there something it is really required for new in VS2022?

VSIX Install failed

Installed product versions

  • Visual Studio 2017 Enterprise V15.5.6
  • Version 1.0? As of 3/26/2018 10:23am Eastern

Description

System.UriFormatException: A relative URI cannot be created because the 'uriString' parameter represents an absolute URI.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(String uriString, UriKind uriKind)
at Microsoft.VisualStudio.ExtensionManager.ExtensionHeaderImpl.get_License()
at VSIXInstaller.ViewModel.ExtensionViewModel..ctor(IExtension extension, IEnumerable1 packages, Boolean satisfied, Boolean showPackages) at VSIXInstaller.ViewModel.InstallableExtensionViewModel..ctor(IInstallableExtension extension, IEnumerable1 packages, Boolean satisfied, Boolean showPackages, Boolean alreadyInstalled, Boolean isNotInstallableSDK)
at VSIXInstaller.ViewModel.InstallableExtensionViewModel.CreateWithoutPackages(InstallExtensionData installData)
at VSIXInstaller.SingleInstallPage..ctor(ExtensionData data, InstallExtensionData installData, IEnumerable`1 targetSkus)
at VSIXInstaller.LoadingPage.<>c__DisplayClass11_1.b__2()

Install log attached

Steps to recreate

  1. Download CleanBinAndObj.vsix
  2. Launch it
  3. Visual Studio began the install
  4. Visual Studio displayed the generic dialog indicating the install failed.

Current behavior

Install did not complete successfully.

Expected behavior

Clean from solution explorer

Is it possible to improve it with a right-click on a project/solution on the solution explorer?

So if I RC on the solution- it will delete all Bin Obj and if I RC on a specific project- it will delete only the Bin Obj of that project?

Obj directory is addition files in projects

Installed product versions

  • Visual Studio: [2019 Community]
  • This extension: [1.1.33]

Description

Obj directory has additional files in them - especially with Blazor and WPF .Net 5.
But doing a Clean Build before is a work around.

Steps to recreate

  1. Build solution with .Net 5 Blazor and .Net WPF
  2. Build solution
  3. Run CleanBinAndObj

Current behavior

Leaves files in obj directories but doing a clean build first before running is a working around

Expected behavior

Expected it to clean the bin and objects even after build. But still a time saver.

Can not save options. The "Subdirectories to clean" option reseted to default after restarting the VS.

Installed product versions

  • Visual Studio: 2022 community 17.0.2
  • This extension: 1.2.57

Description

The "Subdirectories to clean" option reseted to default after restarting the VS.

Steps to recreate

  1. Open a VS instance with or without a solution.
  2. Open option page of Clean Bin and Obj.
  3. Click the "..." button in the right of "String[] Array" and delete the "bin" line.
  4. Click two confirm button to close the option window.
  5. Restart the VS.

Current behavior

The "Subdirectories to clean" option reseted to default value "bin obj"

Expected behavior

The "Subdirectories to clean" option should keep the last value I saved.

Errors are not displayed

When running clean if a file is in use and the bin folder cannot be deleted the output pane still shows the project as cleaned. I think it should show that the project was not cleaned

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.