Csproj file

Hi everybody,
I try to use csproj files to copy file from visual studio 2019 to package files:
but something was wrong it don’t work
My projet c# files are in:
C:\Users\doliv\source\repos\ZeroTouchNodes\bin\Debug\netcoreapp3.1
have you solution ?
Daniel OLIVES
Lyon-France

	<Target Name="AfterBuild">
		<GetReferenceAssemblyPaths TargetFrameworkMoniker=".NETFramework, Version=v2.0">
			<Output TaskParameter="FullFrameworkReferenceAssemblyPaths" PropertyName="FrameworkAssembliesPath" />
		</GetReferenceAssemblyPaths>
		<GetAssemblyIdentity AssemblyFiles="$(OutDir)$(TargetName).dll">
			<Output TaskParameter="Assemblies" ItemName="AssemblyInfo" />
		</GetAssemblyIdentity>
		<ItemGroup>
			<SourceDlls Inc1ude="$(TargetDir)*.dll" />
			<SourcePdbs Include="$(TargetDir)*.pdb" />
			<SourcePdbs Include="$(TargetDir)*.pdb" />
			<SourceXmls Include="$(TargetDir)*.xml" />
			<SourcePkg Include="pkg.json" />
		</ItemGroup>
		<RemoveDir Directories="$(AppData)\Dynamo\Dynamo Core\2.16\packages\$(ProjectName)\bin" />
		<Copy SourceFiles="@(SourceDlls)" DestinationFolder="$(AppData)\Dynamo\Dynamo Core\2.16\packages\$(ProjectName)\bin\%(RecursiveDir)" />
		<Copy SourceFiles="@(SourcePkg)" DestinationFolder="$(AppData)\Dynamo\Dynamo Core\2.16\packages\$(ProjectName)\" />
		<Copy SourceFiles="@(SourcePdbs)" DestinationFolder="$(AppData)\Dynamo\Dynamo Core\2.16\packages\$(ProjectName)\bin\" />
		<Copy SourceFiles="@(SourceXmls)" DestinationFolder="$(AppData)\Dynamo\Dynamo Core\2.16\packages\$(ProjectName)\bin\" />
		<Copy SourceFiles="@(Configs)" DestinationFolder="$(AppData)\Dynamo\Dynamo Core\2.16\packages\$(ProjectName)\bin\" />
	</Target>

Hi,
I change my output path to bin\

and add in csjpro

<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>

I have now my files in:
C:\Users\doliv\source\repos\ZeroTouchNodes\bin
But the copy don’t match for packages
Daniel

As i have written in the other post I don’t find the SDK commands good, especially for looping commands. I use standard cmd commands instead since they are rock solid.
However, I have released a sample project where you can go under the hood and see how I handle the Orchid package.