'\visual Studio For Mac\' Bower.json'''

Posted on  by 

Mac\

  1. Visual Studio For Mac Os X
  2. Visual Studio For Mac Download
  3. Json File Visual Studio
Bower.json

Visual Studio for Mac.NET. Azure DevOps. When I was creating a new project asp.net core 2 that I was unable to create a new bower.json from the Add >> new item in VS. An early version of that project is available in preview builds of Visual Studio, which can be installed side-by-side with the latest official Visual Studio. Bower.json Intellisense. Get full IntelliSense for everything in bower.json, including live search results from the online Bower registry. Install on save. As soon as you save any changes to the bower.json file, Visual Studio automatically calls bower install to install or restore all packages.

Viewed 638 times

I am trying to setup an MVC project that can make use of the Bower package manager in Visual Studio on a Mac so that it is the same as using it on Windows. I want to add Bootstrap and jQuery into my application.

I have looked at the pre-built projects that come with Visual Studio and can see that they have used bower.json to install packages such as Bootstrap and jQuery into the project. As a result, in the wwwroot file they have a lib file containing all the required dist folders.

I have tried adding the bower.json file into the project with only the 'Bootstrap' reference as shown in the picture above and have set it to 'Content' on the 'Build Actions' tab. (This what the bower.json file is set to in the pre-built project) However, whenever I set the folders 'Build Actions' to 'Content' and try to build the project, I get this error:

Now every time I change the 'EnableCompileDefaultItems' to false and try to save it, I get an 'Access Denied' message.

All the other files such as appsettings.json are also not being added and I cannot find anything on the internet that gives a good walkthrough regarding setting an empty project up...

How can I use Bower in my project or is there another easier way to add third party items such as Bootstrap into the project? I assume it is possible to download the files for libraries such as Bootstrap and jQuery and add them directly into the wwwroot folder? However, I have never done this is a .Net Core application and am unsure of the setup required for the folder structure.

Visual Studio For Mac Os X

I guess if it comes to it, I can create a pre-built project and delete all the things I do not need, but I think that is a very backwards way of going about it.

user3559349

Visual Studio For Mac Download

Alex MarchantAlex Marchant
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.

Json File Visual Studio

Browse other questions tagged asp.net-core-mvcbowerasp.net-core-2.0visual-studio-mac or ask your own question.

Coments are closed