11<Project Sdk =" Microsoft.NET.Sdk" >
22 <PropertyGroup >
33 <TargetFramework >net48</TargetFramework >
4+ <AppendTargetFrameworkToOutputPath >false</AppendTargetFrameworkToOutputPath >
5+ <AppendRuntimeIdentifierToOutputPath >false</AppendRuntimeIdentifierToOutputPath >
46 <LangVersion >latest</LangVersion >
57 <GenerateAssemblyInfo >false</GenerateAssemblyInfo >
68 <UseWindowsForms >true</UseWindowsForms >
79 <UseWPF >true</UseWPF >
810 <Configurations >Debug A22</Configurations >
911 <Configurations >$(Configurations);Release A22</Configurations >
1012 <GenerateResourceUsePreserializedResources >true</GenerateResourceUsePreserializedResources >
11- <AppendTargetFrameworkToOutputPath >false</AppendTargetFrameworkToOutputPath >
1213 </PropertyGroup >
1314 <PropertyGroup >
1415 <ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch >
126127 <None Update =" PackageContents.xml" >
127128 <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
128129 </None >
130+ <None Update =" postbuild.ps1" >
131+ <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
132+ </None >
129133 <Resource Include =" Images\Copy.png" />
130134 <Resource Include =" Images\Cut.png" />
131135 <Resource Include =" Images\Delete.png" />
179183 <PlatformTarget >x64</PlatformTarget >
180184 <ImplicitUsings >enable</ImplicitUsings >
181185 </PropertyGroup >
182- <PropertyGroup Condition = " '$(Configuration)' == 'Debug' " >
183- <PostBuildEvent >start gpedit </PostBuildEvent >
186+ <PropertyGroup >
187+ <PostBuildEvent >powershell -NoProfile -ExecutionPolicy Unrestricted ./postbuild.ps1 -Configuration '$(Configuration)' -SolutionDir '$(SolutionDir)' -ProjectDir '$(ProjectDir)' </PostBuildEvent >
184188 </PropertyGroup >
185-
186- <Target Name =" PostBuild" AfterTargets =" PostBuildEvent" Condition =" $(Configuration.Contains('Debug'))" >
187- <Exec Command =" set bundle=" C:\ProgramData\Autodesk\ApplicationPlugins\CADPythonShell.bundle\"
 if not exist " %25bundle%25" mkdir " %25bundle%25"
 xcopy " $(TargetDir)*.*" " %25bundle%25" /Y /I /E /R /EXCLUDE:$(ProjectDir)exclude.txt
 xcopy " $(SolutionDir)PackageContents.xml" " %25bundle%25" /Y /R" />
188- </Target >
189189</Project >
0 commit comments