MSBuildSdkExtras icon indicating copy to clipboard operation
MSBuildSdkExtras copied to clipboard

Debugging MSBuild.Sdk.Extras projects

Open gmarbury opened this issue 6 years ago • 4 comments

I am not able to debug into projects using MSBuild.Sdk.Extras. I'm using Visual studio 2019 16.3.9 and <Project Sdk="MSBuild.Sdk.Extras/2.0.54">. Any ideas?

gmarbury avatar Nov 14 '19 14:11 gmarbury

Hardly any info in here. I'm able to debug fine, are you sure you're in Debug mode and doing a project reference into MSBuild.Sdk.Extras project?

SachinCS1992 avatar Nov 27 '19 11:11 SachinCS1992

Usually, this is caused by corrupt bin and obj folders. do a git clean -xf on your solution after shelving any important changes so you don't lose them, and you should be good to go.

jzabroski avatar Apr 11 '20 17:04 jzabroski

I still can not debug in IOS. I set my project up as close as possible to the Xamarin.Essentials Proj at https://github.com/xamarin/Essentials/blob/main/Xamarin.Essentials/Xamarin.Essentials.csproj. The notable differences are listed below

  <PropertyGroup>
    <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
    <Deterministic>false</Deterministic>
    <SignAssembly>true</SignAssembly>
    <AssemblyOriginatorKeyFile>..\..\StrongName.snk</AssemblyOriginatorKeyFile>
    <DefineConstants>TRACE;$(DefineConstants)</DefineConstants>
  </PropertyGroup>

gmarbury avatar Mar 16 '21 21:03 gmarbury

Ok playing around with this a little more I fixed it (at least on IOS) by making changes to my root level IOS project. I'm not sure which setting fixed it. image

gmarbury avatar Mar 16 '21 22:03 gmarbury