How to add an additional Uno head to an existing Uno solution? - uno-platform

I can only find commands how to create and build Uno solutions from scratch but nowhere how to add - for example an additional mobile head ? Neither Visual Studio templates offer it on such granularity.
dotnet new unoapp-net6 -h tells neither anything about such option.

Adding Platforms to an Existing Project
If you have an existing Uno Platform project, and you have not selected all the platforms you need when creating the project, this guide will show you how to add new ones.
Considering that your project is called MyProject, and you want to add the Gtk project head:
In a separate temporary folder, create a new project using the Visual Studio 2022 or dotnet new templates, using MyProject for its name.
Unselect all platforms except Gtk in the platforms selection dialog
Once the project has been created, navigate to the new folder MyProject.Skia.Gtk
Copy this folder to the existing project structure, at the same level as the other platform folders
In Visual Studio, right-click on the Platforms solution folder, then select Add, Existing project
Save your solution
Your new platform project is now ready to be compiled.
platform.uno

Related

Xamarin.Forms upgraded to Maui - Visual Studio Cannot debug/run?

Application upgraded using Microsoft's auto upgrade command line tool.
Some code fixes, and the code builds successfully.
Visual Studio however does not show me any way to debug my app.
When trying to click on Debug anyway, a random Android Emulator from my list(which is not showing currently)
Will open, but deployment will fail without specifying the reason.
Has anyone managed to upgrade an existing Xamarin.Forms project to Maui?
I managed to make VS recognize the Android project in my converted solution.
I added the <SingleProject>true</SingleProject> property into my Android project's .csproj file under the first/main property group, closed VS, deleted Bin, Obj, .vs folders.
After starting VS again , I rebuilt and VS allowed me to debug on selected .net targets like a single project Maui solution.
This is very strange that it works, since this solution is made of 3 project like in a Xamarin.Forms solution, so it doesn't make since that adding this property solves the issue, but there you go.
Delete .bin and .obj folders. Delete solution's hidden .vs folder. Build. Does it show debug option now?
Try restarting VS (after the successful build). Now work?
If not, Create a new project using Maui template.
Use solution / manage all nugets to add nugets used by your project.
Copy all your source files into that new project.
Project / "Add existing items": all those source files.

How to Publish dotnet webapi application that have mutiple projects to iis

[![this is my webApi project solution structure.this have multiple projects added][1]][1]
how can i publish these kind of projects in visual studio 2019
[1]: https://i.stack.imgur.com/Z42EP.png
I'm assuming by publish you do not mean you just want the DLL's.
Those are class library projects, they cannot be published by themselves.
If you want to publish a project you need to build either a web api, console application, wpf, web forms, etc. You can then add the class library projects as project references to the project you wish to publish. When you publish one of those projects, the dlls for the class library projects automatically get built along with them.
In the example in the screenshot you provided, you would publish "ThriftPlanningWebApi". That would automatically publish all the dlls for the class libraries along with it.
If you do want the raw DLL's simply build the project in release mode, navigate to the file location of the project. In the bin folder there should be a folder called "release". That folder will contain all your dlls.
Let me know if you need anything else.
Happy coding :)

Configuring existing ASP.NET project for DNVM, DNX environment on a Mac

I have an ASP.NET Web API project created on Windows using Visual Studio. How can I set this up for use with DNX/DNVM (on a Mac)?
Switching to Git solved the source control compatibility with TFS. But I wasn't able to find references to getting a project working across both these development environments.
I'm assuming as a first step the project will have to be migrated to ASP.NET 5/vNext but wondering other problems lurk around the corner with different project members using different environments.
I get an error when I run - git:(master):dnx . kestrel
As you mentioned yes you will have to migrate any namespace changes. I have a project that is developed across both. Also changing csproj files to xproj. Support is coming for some kind of interop between the different project types but its not here yet.
For build, publish, deploy from git without relying on VS publish capabilities or MSBuild you can follow my blog post here.
Basically you use DNU to publish and then kudu to deploy.

Update folder structure in VS Tools for cordova to support CLI interoperability (VS2015RC)

I see that VS2015RC support the more cordova suggested folder structure, and CLI interoperability. Are there any docs that describe how to modify existing apps to use this new feature? I've build an app based on this the VS2013 ionic starter template and would like to start using the ionic cli.
Thanks for any suggestions.
Larsi
This documentation describes how you manually convert your existing apps to VS 2105 RC project structure. Let me know if you have problems accessing the documentation.
I don't think the docs for this are available yet, but this post (under Method 2) walks through getting the CLI project into a VS2015RC TACO project...
Using Ionic with Visual Studio Tools for Apache Cordova
In general the steps are...
create a Cordova project using CLI
create a 2nd (empty) project using VS2015 RC Cordova (blank app) template
from the VS project, copy the \merges, .jsproj, and taco.json to the CLI project folder
Open the .jsproj and cross your fingers :)
There is another method I believe, which I have used -
Create a new Blank App using VS 2013/2015
Copy all the contents from your www folder from your existing project and paste it to the www folder of this blank app.
Build and enjoy!

how can I create the solution file for already existing visual studio 2003 web project

I have one visual studio 2003 web project, I got this project form my friend, and how can I run this application in visual studio 2003.Becuse now I don't have a solution file for this application. In my system I don't have administrative access.
Create a new solution (empty) and import all the existing files you got.
You don't need to be administrator. Just create an empty solution file (1 directory level above the project is convenient).
Then use "Add existing Items" and multi-select all files you want to add. You can do this in several steps. Add references that are missing.

Resources