Visual Studio for Mac Data_app not found? - macos

I am new to MVC web development!
I am using visual studio for Mac and is trying to build a login and registration page for my web. However, I can't find the Data_app folder. A lot of the online searches say that I can just create those folder myself, however, when I try to add files (for the app_data), I couldn't find it in the visual studio. Can I just manually create those too? or this just wouldn't work on a mac?

Related

Make Visual Studio work on source files developed under Mac

I use Emacs for Mac to develop Excel add-ins, and test and debug them in Excel Online and Chrome DevTools. All the source files (.xml, .html, .js, .css) are put in one folder at the same level. The folder contains no more than 10 files in total, and we can add it to workspace in Chrome DevTools, which synchronises quite well with Emacs.
Once an add-in has been built more or less, I need to test (and thus debug) it further in Excel for Windows, which is more used by professionals and supports more complex Excel files than Excel Online. I install Windows as a virtual machine, which has access to files in Mac.
To debug an add-in in Excel for Windows, we have to use Visual Studio, I see how to create an add-in project from scratch in Visual Studio.
However, the question is, whether it is possible to build a project in Visual Studio, which is based on existing source files of an add-in (in one folder and at the same level). I guess only when we code and debug on the same source files across Windows (Visual Studio) and Mac (Emacs), we could keep the files synchronised.
Does anyone know what is the best practice?
If you're looking for the fully interactive debug experience from Visual Studio (ie. Hit F5 and have the website, debugger and Excel all spin up at once) then this does require Visual Studio ASP.NET.
That said, you do not need to use Visual Studio to build Add-ins. All that is required is a Manifest and a Web App hosted over HTTPS. The last part is the tricky bit since you likely don't have a valid SSL Cert running on your local Mac that is also trusted on the PC. You could solve this by trusting that cert in Windows but if you're not familiar with how the Certificate Manager works it may be an exercise in frustration.
The easiest way around this is using an Azure. Web Apps have a Free tier so it won't cost anything to spin it up and they include a valid SSL cert out of the box. Once you push your site up into Azure you simply need to edit the Manifest file and give it your Web App URL as the source location (i.e. https://mytestsite.azurewebsites.net/index.html).
In order to sideload the Add-in into Excel for Windows, you'll want to place the Manifest into a shared folder (SMB share). Within Excel you add that network share as a "Trusted Catalog" after which any manifest placed in that directory will show up in Excel for Windows.

Is it possible to provide custom content for the VS2012 Start Page?

Visual Studio 2012 (and 2010, too) has a Start Page that has links and streamed videos. Is it possible for my package to provide content on this page, e.g., create a separate section next to Welcome/Windows 8/etc.?
I finally got a custom start page working in VS2012 - my issue was I could not install the Start Page Project Template in 2012 as the extension only installs on 2010 (which I don't have access to) and my My Documents folder is mapped to a network drive, so putting the raw XAML file in My Documents/Visual Studio 2012/Startpages didn't work as Visual Studio refused to use this "untrustworthy file".
Download the Start Page Template from here.
Rename the file to .zip and extract it.
Copy the "\Solution\CSharp\Extensibility\StartPage.zip" file to your project template folder (by default "My Documents\Visual Studio 2012\Templates\ProjectTemplates\Visual C#").
Create a new project using this template.
Follow the instructions here to upgrade from 2010 to 2012 start page.
Update the project properties target framework to 4.5.
Update the project references in the Control project by removing the Microsoft.VisualStudio.Shell.10.0 reference and adding the Microsoft.VisualStudio.Shell.11.0 and Microsoft.VisualStudio.Shell.Immutable.11.0 references.
Update the namespaces references in the xaml file by replacing the existing ones with the two below.
xmlns:vs="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.11.0"
xmlns:vsfxim="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.Immutable.11.0"
Replace the references to vsfx:VsBrushes keys to vs:EnvironmentColors keys, e.g. vsfx:VsBrushes.StartPageBackgroundKey to vs:EnvironmentColors.StartPageTabBackgroundBrushKey
In the VSIX project, make the following changes to the source.extension.vsixmanifest file (values depending on if 2010 support is desired, it is not for me):
Add an author, the default empty tag is not allowed: <Author>Ken</Author>
Change/add the visual studio support version to 11.0: <VisualStudio Version="11.0">
Change the supported runtime edition to include 4.5: <SupportedFrameworkRuntimeEdition MinVersion="4.5" MaxVersion="4.5" />
The VSIX solution should now build and spit out a VSIX file in the project bin folder. Install this and you can now choose your Start Page from the drop down list in the visual studio options.
I haven't actually developed my custom start page beyond this, but hopefully it is a helpful to people wanting to get started developing them with VS2012
EDIT: A project which includes a basic 2012 start page, custom control and can be deployed via VSIX: template
Custom Start Pages, via google:
http://msdn.microsoft.com/en-us/library/aa991992.aspx

Umbraco Visual Studio solution (v4.7)

I am using the Jupiter as Visual Studio solution project for a v5 umbraco site -
http://our.umbraco.org/projects/developer-tools/jupiter-as-visual-studio-solution
however i'm struggling to find the project to use for v4.x Does anyone know if it can be accessed anywhere or if i can easily recreate?
You can still access the Umbraco 4.7.1.1 downloads here.
If you don't want/need the full blown source, you may just want to run the 'webdeploy' option as a website in Visual Studio.

Visual Studio 2010 as simple web site editor

Is it possible to use Visual Studio 2010 as a simple web site editor (HTML + JavaScript; no ASP.NET)?
VS only supports known project file types (i.e. .csproj), so I started with a C# project and I've been fiddling with the file, but VS still keeps creating .vshost files and obj directory.
Can I force it not to do this?
See Previous Question
Visual Studio Web Development is orientated to ASP.NET projects creation, but you can build without any problem, HTML & JS applications deleting the extra directories created for ASP.NET apps, which need that.
Maybe using Visual Web developer
http://technet.microsoft.com/en-us/query/9z74w20y
You can add "Project Folders" to a empty project / solution and add the files into the folders without any project "overhead" .. intellisense works fine ..

Installing a windows service from a Visual Studio Installer project

A colleague has written a Windows Application and left me to do the installers. I have created the installer project through Visual Studio and added the primary output of the service project to the new project.
When I run the installer it creates the correct folders and copies the dlls, exe and config file in, but it doesn't do the actual install of the service.
The service isn't listed in the Services window, and if I double click on the exe I'm told I need to run installutil to install the service.
How do I make the installer do this bit for me? I found this article:
http://www.codeproject.com/KB/install/InstallService.aspx
but that seems overly complex for what I would expect to be pretty basic.
I used this article:
How to create a Setup project for a Windows Service in Visual Basic .NET or in Visual Basic 2005
Felt pretty dumb that I couldn't figure it all out until I went through all of the steps in this article. It's not a trivial exercise by any means.
For those who are looking for updated instructions for Visual Studio 2010 (instructions in answer are for VS 2005) check the following link:
Walkthrough: Creating a Windows Service Application in the Component Designer (note that "other versions" [VS 2005, VS2008] are available from the same link)
I had this issue in my case the problem was I neglected to add the custom actions for the installer project. To find these right click project->"view"->"custom actions" under there it needs the primary output added to the folders.

Resources