Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't get Web Compiler option on context menu. Is the extension limited to certain kinds of VS projects? #88

Closed
itorres008 opened this issue Sep 8, 2023 · 5 comments

Comments

@itorres008
Copy link

Installed product versions

  • Visual Studio: 2022 17.7.3
  • This extension: 1.14.10

Description

I'm expecting option for Web Compiler on scss file context menu, but it is not there. I see no other options elsewhere.
Used NuGet in VS 2022 to install BuildWebCompiler2022
No errors on installation, NuGet installation shows it as installed on my project
Extension does not show on Extension manager.

Steps to recreate

Have Bootstrap and its Bootstrap.SASS
Have a custom .scss importing Bootstrap and containing some custom mods.
The project is an ASP .Net Web Forms project.

Is the extension limited to certain kinds of projects? Does it depend on existence of a project file? Is there a workaround?

Any help appreciated.

@fatima-hachem
Copy link

fatima-hachem commented Sep 8, 2023

I'm having a similar issue!
I'm on VS 2022 Community 17.5.5
I'm working on an ASP Razor pages project and I cannot get the "web compiler" in the right-click menu no matter what I do

how did you do that NuGet installation? I downloaded it from the source as a .vsix and tried installing it via Extensions > Manage Extensions

there was a forum where someone manually made a compileconfig.json (I think is what it's called) file, but I'm not too familiar with SASS and don't know where to put that, nor how to make it

@itorres008
Copy link
Author

itorres008 commented Sep 10, 2023

Hi, Fatima.
After much investigating and attempts I was able to install it.
Installed using Visual Studio Marketplace .vsix Installer (https://marketplace.visualstudio.com/items?itemName=Failwyn.WebCompiler64)
Downloads the installer and just double click it.

I am starting with SASS, so I had to research that, compiling, NuGet Packages, people recommending WebCompiler, trying that, then wondering if BuildWebCompiler as the same thing (it is), then installing that, fighting with it, not knowing if it depends on a particular type of VS project and learning it doesn't support VS 2022. Then read about this BuildWebCompiler2022 fork... trying NuGet installation - no context menu option. Eventually reached a mention about installing it from Visual Studio Marketplace. Piece of cake! 😀

Good luck.

webcompiler

@failwyn
Copy link
Owner

failwyn commented Sep 13, 2023

The BuildWebCompiler2022 NuGet package is for use in MSBuild and CI, it will install automatically if you set CompileOnBuild; in order to use the context menus and compile on save, you have to use the Visual Studio Extension (VSIX).

@itorres008
Copy link
Author

Thanks. Hadn't worked with these things before. Didn't know an extension from installing/configuring a NuGet package.
So, even if one wants to use the MSBuild and CI, I guess the first step should be installing the extension since that would provide the context menu option to trigger the NuGet installation.

@failwyn failwyn closed this as completed Sep 14, 2023
@fatima-hachem
Copy link

@itorres008 thanks so much for all this! sounds like you went through a lot. thank you for explaining what you had to do and providing the solution. I appreciate it a lot 😄

I was going to go about it the roundabout way of compiling it elsewhere and bringing the final css into my project later. It was lower on my priority list in comparison to some bigger parts of my project

@failwyn thank you for the explanation as well 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants