1- <?xml version =" 1.0" encoding =" utf-8" ?>
2- <Project ToolsVersion =" 4.0" DefaultTargets =" Build" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
1+ <Project Sdk =" Microsoft.NET.Sdk" >
32 <PropertyGroup >
4- <Configuration Condition =" '$(Configuration)' == '' " >Debug</Configuration >
5- <Platform Condition =" '$(Platform)' == '' " >AnyCPU</Platform >
6- <ProductVersion >9.0.30729</ProductVersion >
7- <SchemaVersion >2.0</SchemaVersion >
8- <ProjectGuid >{7E37F14E-D840-42F8-8CA6-90FFC5497972}</ProjectGuid >
3+ <TargetFramework >net48</TargetFramework >
94 <OutputType >Library</OutputType >
10- <AppDesignerFolder >Properties</AppDesignerFolder >
11- <RootNamespace >CADPythonShell</RootNamespace >
12- <AssemblyName >CADPythonShell</AssemblyName >
13- <FileAlignment >512</FileAlignment >
14- <FileUpgradeFlags >
15- </FileUpgradeFlags >
16- <UpgradeBackupLocation >
17- </UpgradeBackupLocation >
18- <OldToolsVersion >3.5</OldToolsVersion >
195 <PublishUrl >publish\</PublishUrl >
206 <Install >true</Install >
217 <InstallFrom >Disk</InstallFrom >
3117 <IsWebBootstrapper >false</IsWebBootstrapper >
3218 <UseApplicationTrust >false</UseApplicationTrust >
3319 <BootstrapperEnabled >true</BootstrapperEnabled >
34- <TargetFrameworkProfile />
35- <TargetFrameworkVersion >v4.6</TargetFrameworkVersion >
36- <AllowUnsafeBlocks >False</AllowUnsafeBlocks >
3720 <NoStdLib >False</NoStdLib >
38- <TreatWarningsAsErrors >False</TreatWarningsAsErrors >
3921 <IntermediateOutputPath >obj\$(Configuration)\</IntermediateOutputPath >
40- <WarningLevel >4</WarningLevel >
4122 <NoWin32Manifest >False</NoWin32Manifest >
4223 <RunPostBuildEvent >OnBuildSuccess</RunPostBuildEvent >
43- <OutputPath >bin\$(Configuration)\</OutputPath >
4424 <LangVersion >latest</LangVersion >
25+ <GenerateAssemblyInfo >false</GenerateAssemblyInfo >
26+ <UseWindowsForms >true</UseWindowsForms >
27+ <UseWPF >true</UseWPF >
28+ <ImportWindowsDesktopTargets >true</ImportWindowsDesktopTargets >
4529 </PropertyGroup >
4630 <PropertyGroup >
47- <!-- see: http://thebuildingcoder.typepad.com/blog/2013/06/processor-architecture-mismatch-warning.html -->
4831 <ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch >
4932 None
5033 </ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch >
5134 </PropertyGroup >
52- <PropertyGroup Condition =" '$(Configuration)' == 'Debug' " >
53- <TargetFrameworkVersion >v4.8</TargetFrameworkVersion >
54- <DefineConstants >DEBUG;TRACE</DefineConstants >
55- <DebugType >Full</DebugType >
56- </PropertyGroup >
5735 <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " >
58- <DebugSymbols >true</DebugSymbols >
59- <PlatformTarget >AnyCPU</PlatformTarget >
60- <ErrorReport >prompt</ErrorReport >
6136 <CodeAnalysisRuleSet >MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet >
6237 </PropertyGroup >
63- <PropertyGroup Condition =" '$(Configuration)' == 'Debug' " >
64- <Optimize >False</Optimize >
65- <CheckForOverflowUnderflow >False</CheckForOverflowUnderflow >
66- <BaseIntermediateOutputPath >obj\</BaseIntermediateOutputPath >
67- </PropertyGroup >
6838 <PropertyGroup Condition =" '$(Platform)' == 'AnyCPU' " >
6939 <BaseAddress >4194304</BaseAddress >
7040 <RegisterForComInterop >False</RegisterForComInterop >
7141 <GenerateSerializationAssemblies >Auto</GenerateSerializationAssemblies >
72- <Prefer32Bit />
7342 </PropertyGroup >
7443 <PropertyGroup Condition =" '$(Configuration)' == 'Release' " >
75- <TargetFrameworkVersion >v4.7</TargetFrameworkVersion >
76- <DefineConstants >TRACE</DefineConstants >
7744 <DebugType >None</DebugType >
7845 </PropertyGroup >
7946 <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " >
8047 <DebugSymbols >true</DebugSymbols >
81- <PlatformTarget >AnyCPU</PlatformTarget >
82- <ErrorReport >prompt</ErrorReport >
8348 <CodeAnalysisRuleSet >MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet >
8449 </PropertyGroup >
85- <PropertyGroup Condition =" '$(Configuration)' == 'Release' " >
86- <Optimize >True</Optimize >
87- <CheckForOverflowUnderflow >False</CheckForOverflowUnderflow >
88- <BaseIntermediateOutputPath >obj\</BaseIntermediateOutputPath >
89- </PropertyGroup >
9050 <ItemGroup >
9151 <Reference Include =" accoremgd" >
9252 <HintPath >C:\Program Files\Autodesk\AutoCAD 2022\accoremgd.dll</HintPath >
11777 <SpecificVersion >False</SpecificVersion >
11878 <HintPath >..\RefrencedAssemblies\IronPython.Wpf.dll</HintPath >
11979 </Reference >
120- <Reference Include =" Microsoft.CSharp" />
12180 <Reference Include =" Microsoft.Dynamic, Version=1.1.0.20, Culture=neutral, PublicKeyToken=7f709c5b713576e1, processorArchitecture=MSIL" >
12281 <SpecificVersion >False</SpecificVersion >
12382 <HintPath >..\RefrencedAssemblies\Microsoft.Dynamic.dll</HintPath >
13089 <SpecificVersion >False</SpecificVersion >
13190 <HintPath >..\RefrencedAssemblies\Microsoft.Scripting.Metadata.dll</HintPath >
13291 </Reference >
133- <Reference Include =" PresentationCore" />
134- <Reference Include =" PresentationFramework" />
135- <Reference Include =" System" />
136- <Reference Include =" System.Core" >
92+ <Reference Update =" System.Core" >
13793 <RequiredTargetFramework >3.5</RequiredTargetFramework >
13894 </Reference >
139- <Reference Include =" System.Drawing" />
14095 <Reference Include =" System.Windows.Controls.WpfPropertyGrid, Version=2010.11.10.0, Culture=neutral, PublicKeyToken=be4b71144cd8a3e5, processorArchitecture=MSIL" >
14196 <SpecificVersion >False</SpecificVersion >
14297 <HintPath >..\RefrencedAssemblies\System.Windows.Controls.WpfPropertyGrid.dll</HintPath >
14398 </Reference >
144- <Reference Include =" System.Windows.Forms" />
145- <Reference Include =" System.Xaml" />
146- <Reference Include =" System.Xml.Linq" >
147- <RequiredTargetFramework >3.5</RequiredTargetFramework >
148- </Reference >
149- <Reference Include =" System.Data.DataSetExtensions" >
99+ <Reference Update =" System.Xml.Linq" >
150100 <RequiredTargetFramework >3.5</RequiredTargetFramework >
151101 </Reference >
152- <Reference Include =" System.Data" />
153- <Reference Include =" System.Xml" />
154- <Reference Include =" WindowsBase" />
155102 <Reference Include =" WPG, Version=2.0.3997.38860, Culture=neutral, processorArchitecture=MSIL" >
156103 <SpecificVersion >False</SpecificVersion >
157104 <HintPath >..\RefrencedAssemblies\WPG.dll</HintPath >
158105 </Reference >
159106 </ItemGroup >
160- <ItemGroup >
161- <Compile Include =" CommandLoaderBase.cs" />
162- <Compile Include =" CompletionToolTip.cs" />
163- <Compile Include =" ConfigureCommand.cs" />
164- <Compile Include =" ConfigureCommandsForm.cs" >
165- <SubType >Form</SubType >
166- </Compile >
167- <Compile Include =" ConfigureCommandsForm.Designer.cs" >
168- <DependentUpon >ConfigureCommandsForm.cs</DependentUpon >
169- </Compile >
170- <Compile Include =" ConsoleOptions.cs" />
171- <Compile Include =" IronPythonConsole.xaml.cs" >
172- <DependentUpon >IronPythonConsole.xaml</DependentUpon >
173- </Compile >
174- <Compile Include =" IronPythonConsoleApp.cs" />
175- <Compile Include =" IronPythonConsoleCommand.cs" />
176- <Compile Include =" Properties\AssemblyInfo.cs" />
177- <Compile Include =" Properties\Resources.Designer.cs" >
178- <AutoGen >True</AutoGen >
179- <DesignTime >True</DesignTime >
180- <DependentUpon >Resources.resx</DependentUpon >
181- </Compile >
182- <Compile Include =" CADPythonShellApplication.cs" />
183- <Compile Include =" RelayCommand.cs" />
184- </ItemGroup >
185- <ItemGroup >
186- <EmbeddedResource Include =" ConfigureCommandsForm.resx" >
187- <DependentUpon >ConfigureCommandsForm.cs</DependentUpon >
188- </EmbeddedResource >
189- <EmbeddedResource Include =" Properties\Resources.resx" >
190- <Generator >ResXFileCodeGenerator</Generator >
191- <LastGenOutput >Resources.Designer.cs</LastGenOutput >
192- </EmbeddedResource >
193- </ItemGroup >
194107 <ItemGroup >
195108 <Resource Include =" Images\Number.png" />
196109 <Resource Include =" Images\Paragraph.png" />
208121 <Content Include =" init.py" >
209122 <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
210123 </Content >
211- <None Include =" Icons\Python-16.ico" >
124+ <None Update =" Icons\Python-16.ico" >
212125 <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
213126 </None >
214- <None Include =" Icons\Python-32.ico" >
127+ <None Update =" Icons\Python-32.ico" >
215128 <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
216129 </None >
217- <None Include =" Icons\Settings-16.ico" >
130+ <None Update =" Icons\Settings-16.ico" >
218131 <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
219132 </None >
220- <None Include =" Icons\Settings-32.ico" >
133+ <None Update =" Icons\Settings-32.ico" >
221134 <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
222135 </None >
223- <None Include =" Resources\ipy.ico" />
224136 <Resource Include =" Images\Copy.png" />
225137 <Resource Include =" Images\Cut.png" />
226138 <Resource Include =" Images\Delete.png" />
262174 </BootstrapperPackage >
263175 </ItemGroup >
264176 <ItemGroup >
265- <Page Include =" IronPythonConsole.xaml" >
266- <SubType >Designer</SubType >
267- <Generator >MSBuild:Compile</Generator >
268- </Page >
177+ <ProjectReference Include =" ..\CADRuntime\CADRuntime.csproj" />
178+ <ProjectReference Include =" ..\PythonConsoleControl\PythonConsoleControl.csproj" />
269179 </ItemGroup >
270180 <ItemGroup >
271- <ProjectReference Include =" ..\CADRuntime\CADRuntime.csproj" >
272- <Project >{c8446636-c663-409f-82d0-72c0d55bba1c}</Project >
273- <Name >CADRuntime</Name >
274- </ProjectReference >
275- <ProjectReference Include =" ..\PythonConsoleControl\PythonConsoleControl.csproj" >
276- <Project >{f1152d68-346b-4f48-8db7-be67b5cb1f49}</Project >
277- <Name >PythonConsoleControl</Name >
278- </ProjectReference >
181+ <PackageReference Include =" Microsoft.CSharp" Version =" 4.7.0" />
182+ <PackageReference Include =" System.Data.DataSetExtensions" Version =" 4.5.0" />
183+ <PackageReference Include =" Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers" Version =" 0.3.310801" >
184+ <PrivateAssets >all</PrivateAssets >
185+ </PackageReference >
279186 </ItemGroup >
280- <ItemGroup />
281- <Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
282- <PropertyGroup >
283- <PreBuildEvent >
284- </PreBuildEvent >
285- </PropertyGroup >
187+ <PropertyGroup />
286188 <PropertyGroup >
287189 <PostBuildEvent >set bundle="C:\ProgramData\Autodesk\ApplicationPlugins\CADPythonShell.bundle\"
288190if not exist "%25bundle%25" mkdir "%25bundle%25"
289191xcopy "$(TargetDir)*.*" "%25bundle%25" /Y /I /E /R
290192xcopy "$(SolutionDir)PackageContents.xml" "%25bundle%25" /Y /R</PostBuildEvent >
291193 </PropertyGroup >
292- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
293- Other similar extension points exist, see Microsoft.Common.targets.
294- <Target Name="BeforeBuild">
295- </Target>
296- <Target Name="AfterBuild">
297- </Target>
298- -->
299194</Project >
0 commit comments