안녕하세요. maui에서 릴리즈모드로 빌드에러가 나서 질문드립니다.
에러가나는것은 CS1705 , MSB406 2개 입니다.
디버그모드에서 실행할때는 문제없이 빌드가 되었었는데 릴리즈로 변경하니 에러가 납니다.
Relase모드로 빌드를 성공시킬 수 있는 방법을 알고 싶습니다.
도움을 요청드립니다.
감사합니다.
안녕하세요. maui에서 릴리즈모드로 빌드에러가 나서 질문드립니다.
에러가나는것은 CS1705 , MSB406 2개 입니다.
디버그모드에서 실행할때는 문제없이 빌드가 되었었는데 릴리즈로 변경하니 에러가 납니다.
Relase모드로 빌드를 성공시킬 수 있는 방법을 알고 싶습니다.
도움을 요청드립니다.
감사합니다.
프로젝트 파일(mauiFirebaseDemo.csproj
)의 내용을 올려주세요.
프로젝트파일은 아래와 같습니다.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!--<TargetFrameworks>net6.0-android;</TargetFrameworks>-->
<TargetFrameworks>net6.0-android;net6.0-ios;</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks> -->
<OutputType>Exe</OutputType>
<RootNamespace>MauiFirebaseDemo</RootNamespace>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<!-- Display name -->
<ApplicationTitle>MauiFirebaseDemo</ApplicationTitle>
<!-- App Identifier -->
<ApplicationId>com.cedricgabrang.mauifirebasedemo</ApplicationId>
<ApplicationIdGuid>A132B7F5-BC2E-4BF4-A6E3-0F4F97640979</ApplicationIdGuid>
<!-- Versions -->
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net6.0-android|AnyCPU'">
<RunAOTCompilation>False</RunAOTCompilation>
<AndroidPackageFormat>apk</AndroidPackageFormat>
</PropertyGroup>
<ItemGroup>
<!-- App Icon -->
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
<!-- Splash Screen -->
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
<!-- Images -->
<MauiImage Include="Resources\Images\*" />
<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />
<!-- Custom Fonts -->
<MauiFont Include="Resources\Fonts\*" />
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-android'">
<GoogleServicesJson Include="google-services.json" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-ios'">
<BundleResource Include="GoogleService-Info.plist" />
</ItemGroup>
<ItemGroup>
<None Remove="Platforms\Android\Resources\values\strings.xml" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-ios' OR '$(TargetFramework)' == 'net6.0-android'">
<PackageReference Include="Plugin.Firebase" Version="2.0.3" />
<PackageReference Include="Plugin.Firebase.Crashlytics" Version="2.0.1" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-android'">
<PackageReference Include="Xamarin.Kotlin.StdLib.Jdk7" Version="1.7.10" ExcludeAssets="build;buildTransitive" />
<PackageReference Include="Xamarin.Kotlin.StdLib.Jdk8" Version="1.7.10" ExcludeAssets="build;buildTransitive" />
</ItemGroup>
<ItemGroup>
<None Update="google-services.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
XCODE 이야기 나오는걸 보니 CS1705는 맥북에서 실행해야할까요?
MSB4064는 해결했습니다. 감사합니다.
xcode와 연결된 시뮬레이터에서 잘 실행된다는 이야기이고, 해당 댓글을 따라 하시고 iOS를 시뮬레이터 하는 방법은 windows에서 iOS 시뮬레이터 실행하는 방법을 찾아보세요
성공했습니다. 감사합니다.