Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Templates wont work by default #208

Closed
MikeCodesDotNET opened this issue Jun 28, 2023 · 1 comment · Fixed by #209
Closed

iOS Templates wont work by default #208

MikeCodesDotNET opened this issue Jun 28, 2023 · 1 comment · Fixed by #209
Labels

Comments

@MikeCodesDotNET
Copy link
Member

Describe the bug

We need to update the iOS template to use NET7 and remove the runtime identifier.

The csproj should look something like this:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net7.0-ios</TargetFramework>
    <OutputType>Exe</OutputType>
    <Nullable>enable</Nullable>
    <ImplicitUsings>true</ImplicitUsings>
    <SupportedOSPlatformVersion>13.0</SupportedOSPlatformVersion>
  </PropertyGroup>
</Project>

This will then enable deploying to both the simulator and device without needing to edit the csproj.

To Reproduce

Create a new iOS Project. Try and deploy it to a device. It won't work.

Avalonia Templates version

Latest

Avalonia version

Latest RC

Additional context

No response

@Mrxx99
Copy link
Contributor

Mrxx99 commented Jun 28, 2023

The xplat template already use .NET 7 by default (and can't be changed to .NET 6 with template parameters).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants