How to use bootstrap after NuGet installed it on Visual Studio Mac? - asp.net-core

I'm a newbie to asp.net core and using NuGet install bootstrap package firstime. However, after I installed this package on Visual Studio Mac, I can't find any css/js files in my solution folder.
I'm using Visual Studio Mac 2019 and created a web app using asp.net core.
I expect I can find css/js files in solution folder, or I can reference any parameters in my razor pages.

Related

Nuget package installs but not listed in VS project references

Environment:
Microsoft Visual Studio Community 2019
ASP.Net v4.8
Web application project using VB (same problem 2 different projects)
Nuget package Microsoft.Chart.Controls v 4.7.2046 (latest) "ASP.NET and Windows Forms Chart Controls for .NET Framework"
Problem:
The package installs without error. The folder and content appear in the packages folder. The entry is listed in packages.config...BUT the reference is not in the References list in VS solution explorer and attenpting to use any part of it causes a lot of html errors eg "Element Chart is not a known element".
Tried "Add Reference" but the package does not appear in any of the lists.
I'm wondering if this package is not intended for use in a web application?

How to target Microsoft.NetCore.App v1.0.3

I am trying to deploy an Asp.net Core app to my shared host. Apparently, the server is only compatible with NetCore.App v1.03 or v.1.1.0, not the latest versions v1.0.4/v1.1.1 respectively. In Visual Studio, Im trying to publish to target framework "netcoreapp1.0" but I am only able to access NetCore.App v1.04 from Nuget. Nuget states that other versions including v1.0.3 are blocked by the project.
Can anyone tell me how to tell Visual Studio to use v1.0.3 for my project instead of v1.0.4?
Apart from installing the missing versions on the server, you can add this manually to a <PropertyGroup> element of your csproj file:
<RuntimeFrameworkVersion>1.0.3</RuntimeFrameworkVersion>

Creating New Wix Project In Visual Studio 2017 throws an error

I have installed Visual Studio 2017 Community Edition. Installed it without any specific things selected like C++ development or Windows development etc. After that I have installed Wix through wixtoolset, which downloaded and installed wix tool set components. After that I have installed the Wix ToolSet extension for Visual Studio 2017. Restarted the Visual Studio and trying to create a new project through File -> New -> Project - WiX Toolset -> Setup Project.
It gives the error and does not let me create the project. I am totally new to WiX and have just a little knowledge about Visual Studio.
Initially, I did not select any of the Installation workloads for VS17 and installed it just to make the installation faster.
Through the comments from Azaz, I came to know that NuGet Package Manager is required to install the packages on demand. But since I could not see the NuGet option at all, I tried to install it with Extensions and updates but it did not work. I did a bit of research and found that at least one .Net development workload is required at a time of VS17 installation which will make the NuGet install automatically in VS17.
So I uninstalled the VS17, WiX at all and removed them from the system. Then Installed VS17 with certain workload packages as shown in the below screenshot.
After that I installed WiX and an extension for the same in VS17. i.e. Votive2017.vsix.
I restart the VS17 and now I am able to create project for WiX.
Looks like there is something I missed somewhere in installing which did not let me install required DLLs and GUID feature, which were important for creating project templates.
Sharing the steps I followed in order to fix the same issue that I found with Visual Studio 2019, as I also installed it without any workload. I was also looking at a reduced installation.
The steps I did in order to fix the template error, install the following individual components:
.NET 5.0 Runtime
.Net Core 3.1 Runtime
.NET SDK
C# and Visual Baisc Roslyn compilers
ClickOnce Publishing
Microsoft Visual Studio Installer Projects
Hope it helps someone else. I have to point out that the comments before helped me understand the issue. But, for example, I couldn't even open the NuGet command line.

Modifying the solution level files in an MVC 6 Project to install a new layout

I have an MVC 6 (ASP.NET 5) solution and I would like to have a way to easily "install" a new layout in Visual Studio 2015.
I have the following files
~/Views/Shared/_Layout.cshtml
~/Views/Shared/{NewLayoutName}/_Header.cshtml
~/Views/Shared/{NewLayoutName}/_Footer.cshtml
~/wwwroot/css/{NewLayoutName}.{version}.css
~/wwwroot/css/{NewLayoutName}.{version}.{theme}.css
An ideal solution would would backup any files that would be overwritten such as the _Layout.cshtml file and would return on an uninstall. Then the files will appear in the installed project. I should be able to create a new MVC 6 app from Visual Studio 2015 and quickly "install this layout."
I tried Nuget and Bower. I'd try Powershell but I hear that's why Nuget doesn't work.
Bower seems to only for client side packages.
I tried using Nuget Package Explorer to create the package and created every variation of folder structures (src, tools, content, "normal" folders, native).
I thought Nuget would be perfect for this but it appears Nuget can't even add css or js to an MVC 6 project. I think this is a Powershell issue.
Nuget's github Open issue #1521
StackOverflow: MVC 6 reference Jquery after adding via Nuget

MVC4 on VS 2010 , using Nuget for Foundation Framework

Downloaded and Installed MVC4 . Create Internet Application with default MVC4 site.I have Installed Foundation Framework by using the NuGet package that is available. It picks-up my classes from foundations css , but the in no visual changes in IE.The files has been added automatically and bundles added in my app after using NuGet.
Any one having same problem , or am I missing something.
MVC4 looks to be different monster to MVC3 .....