Description
dotnet watch does not work for iOS projects unless <MtouchLink>None</MtouchLink> is explicitly set in the .csproj file.
Without this setting, dotnet watch fails to work properly on iPhone Simulator builds.
Steps to Reproduce
- Create a new .NET iOS project
- Run
dotnet watch targeting an iPhone Simulator
- Observe that it does not work
Workaround
Add the following to your .csproj:
<PropertyGroup>
<MtouchLink>None</MtouchLink>
</PropertyGroup>
Proposal
We should consider making MtouchLink=None the default for Debug iPhone Simulator builds, since linking is not typically needed in that configuration and it blocks dotnet watch from working.
This would improve the inner development loop experience without affecting Release or device builds.
Description
dotnet watchdoes not work for iOS projects unless<MtouchLink>None</MtouchLink>is explicitly set in the.csprojfile.Without this setting,
dotnet watchfails to work properly on iPhone Simulator builds.Steps to Reproduce
dotnet watchtargeting an iPhone SimulatorWorkaround
Add the following to your
.csproj:Proposal
We should consider making
MtouchLink=Nonethe default for Debug iPhone Simulator builds, since linking is not typically needed in that configuration and it blocksdotnet watchfrom working.This would improve the inner development loop experience without affecting Release or device builds.