Error when generating ios publication file in visual studio 2017 - visual-studio

I'm going to publish an application in the apple store, where I already created the certificate for mac, I already have an apple account. What I am not getting and generate the .ipa file to attach to the project by visual studio 2017 on windows. I checked some tutorials and they told me to put the project as ad-hoc but it generates the following error
Severity Code Description Project File Line Suppression State
Error The OutputPath property is not set for project 'App39.csproj'.
Please check to make sure that you have specified a valid combination of
Configuration and Platform for this project. Configuration='Ad-Hoc'
Platform='iPhoneSimulator'. This error may also appear if some other
project is trying to follow a project-to-project reference to this project, this
project has been unloaded or is not included in the solution, and the
referencing project does not build using the same or an equivalent
Configuration or Platform. App39

Related

Error publishing .NET MAUI project: the target "_GenerateAppxPackage" does not exist

I have a .NET MAUI project that was created with VS2022 Preview 2, and it builds without errors or warnings and works as expected in the debugger. Prior to updating Visual Studio to Version 17.4.0 Preview 4.0 I was able to publish the project as a sideloadable MSIX from within VS.
Since updating, I get the following error when I click Create in the Create App Packages wizard:
MSB4057 The target "_GenerateAppxPackage" does not exist in the project.
The error is listed against the MAUI project's .csproj file.
I've tried creating a separate new, default MAUI project in the new preview - this publishes ok and (as far as I can see) doesn't contain _GenerateAppxPackage anywhere within its files or project structure. So for now I'm assuming this isn't something new that was added with the preview.
I found some references to _GenerateAppxPackage on the web but they appear to refer to Azure integration. My project is a stand-alone data transformation app that doesn't even access the net.
I'm at a loss what to try next. I don't know what this target refers to, where it should "exist" within the project, or what it does. Can anyone help me understand the problem and/or point me to a solution?
Update: 2022-10-28:
I tried deleting the project structure and creating it from scratch with File -> New Project, then adding back only the .cs and .xaml files. Publishing the recreated project gives me the same error.
I also tried uninstalling the VS preview and re-downloading and installing it. Again, publishing the project gives me the same error.
I still have no idea what is causing this, or even where to start looking.
I faced with the same problem at Visual Studio 2022 17.4.0 (net6.0-windows10.0.19041.0).
The simplest solution for me was be using the command dotnet publish directly.
At root of project just write in terminal:
dotnet publish -f net6.0-windows10.0.19041.0 -c /p:RuntimeIdentifierOverride=win10-x64
I learned today that MAUI is now in the mainline Visual Studio 2022 edition, I've tried using that instead of the preview, and I can confirm that the problem goes away. I wish I'd known about this earlier...

Visual Studio: Include PlugIn but leave out windows part

I am trying to use not the nuget package but the project itself from the media plugin for xamarin forms.
I am adding all the references and upon build (or even clean) i get :
Error: The specified language targets for uap10.0.16299 is missing. Ensure correct tooling is installed for 'uap'. Missing: '/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/xbuild/Microsoft/WindowsXaml/v16.0/Microsoft.Windows.UI.Xaml.CSharp.targets' (Media.Plugin)
I beleive it is looking for the windows SDK which isnt isntalled on my mac and the project itself only supports android and ios.
Using the nuget package, I can check that I only want ios and Android and it works fine, but upon loading the project in as the project it gives me this error.
In the dependencies folder of the project it is still referencing this UAP 10.0.16299 but upon right click all I can do is "refresh".
How can I build my project and leave out this windows crap?
First include the whole project, then edit the CS proj file (right click on solution -> edit project file).
In the first few lines it says: <TargetFramworks...
Remove the unwanted dependencies. They will be gone in the main folder if you save.
Thats it.

Cordova project build in Visula studio

I am using visual studio 2015 to build .appx with emulator for apache cordova project. Whenever I import and build in visual studio emulator it is always showing the following error:
The OutputPath property is not set for project 'Vibration.csproj'. Please check to make sure that you have specified a valid combination
of Configuration and Platform for this project. Configuration='debug'
Platform='x86'. You may be seeing this message because you are trying
to build a project without a solution file, and have specified a
non-default Configuration or Platform that doesn't exist for this
project.
How can I solve it?

TFS Build server Xamarin MsBuild Exception

I have visual studio 2015 installed on the Build server with Xamarin installed. I followed the tutorial on the Xamarin web site here
I also logged into my xamarin account on the build server. I followed the xamarin creating a build definition on the web site here
But i keep getting the following exception when i kick off the build.
I'm not sure if its something wrong with the build defintion, the build machine, the android sdk, it all looks ok.
I did look into this stackoverflow answer but i've no idea where to start looking.
This is the build definition, it follows the Xamarin tutorial on the website, link above
If your local build is successful and just the TFS build is failing then it is usually due to dll reference path issue. Make sure that the Dll is referenced as a relative path in the project file (.csproj). Detail steps please refer this link Namespace could not be found - building using TFS
Also be sure that all referenced assemblies in the project can be found on the TFS build server. And double check the MSbuild version like comment suggested. You could try to add the /p:VisualStudioVersion=14.0 MSBuild argument in the build definition.

Can't build a xamarin project

I am using xamarin with visual studio 2015, and when I create a new cross platform project and try to build it, this error shows up.
Severity Code Description Project File Line Suppression State
Error Reason: C:\Users\US\AppData\Local\Xamarin\zips\96659D653BDE0FAEDB818170891F2BB0.zip is not a valid zip file App2.Droid
How can I solve this issue?
It's just a bug with downloaded ressources, do this actions and comes back to us if your problem persist :
Navigate to C:\Users[user-name]\AppData\Local\Xamarin\zips
Delete 96659D653BDE0FAEDB818170891F2BB0.zip file from the folder.
Delete /.bin & /.obj folders from your project location.
Clean and Rebuild your project.

Resources