Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
resolve assembly net6
  • Loading branch information
chuongmep committed Jun 26, 2022
commit e3a0e08ac4604823560ef9b7caaabd0bcfbc7f9f
13 changes: 13 additions & 0 deletions .idea/.idea.RevitPythonShell/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.idea.RevitPythonShell/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/.idea.RevitPythonShell/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/.idea.RevitPythonShell/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/.idea.RevitPythonShell/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/.idea.RevitPythonShell/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions PythonConsoleControl/CommandLineHistory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PythonConsoleControl
{
Expand Down
10 changes: 0 additions & 10 deletions PythonConsoleControl/PythonConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,17 @@

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading;
using Microsoft.Scripting.Hosting.Shell;
using System.Windows.Input;
using Microsoft.Scripting;
using IronPython.Hosting;
using IronPython.Runtime;
using Microsoft.Scripting.Hosting;
using Microsoft.Scripting.Hosting.Providers;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Threading;
using System.Windows.Documents;
using ICSharpCode.AvalonEdit.Editing;
using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.AvalonEdit.Highlighting;
using ICSharpCode.AvalonEdit.Utils;
using Style = Microsoft.Scripting.Hosting.Shell.Style;
using System.Runtime.Remoting;

Expand Down
4 changes: 0 additions & 4 deletions PythonConsoleControl/PythonConsoleCompletionDataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
using System.Linq;
using System.Text;
using ICSharpCode.AvalonEdit.CodeCompletion;
using ICSharpCode.AvalonEdit;
using ICSharpCode.AvalonEdit.Editing;
using ICSharpCode.AvalonEdit.Document;
using Microsoft.Scripting.Hosting.Shell;
using Microsoft.Scripting.Hosting;
using Microsoft.Scripting;
using System.Threading;
using System.Reflection;
Expand Down
6 changes: 0 additions & 6 deletions PythonConsoleControl/PythonConsoleCompletionWindow.cs
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
// Copyright (c) 2010 Joe Moorhouse

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Input;
using System.Windows.Threading;
using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.AvalonEdit.Editing;
using ICSharpCode.AvalonEdit.Rendering;
using ICSharpCode.AvalonEdit.CodeCompletion;
using System.Reflection;
using System.ComponentModel;

namespace PythonConsoleControl
{
Expand Down
126 changes: 3 additions & 123 deletions PythonConsoleControl/PythonConsoleControl.csproj
Original file line number Diff line number Diff line change
@@ -1,125 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Configurations>Debug;Debug One;Release</Configurations>
</PropertyGroup>

<PropertyGroup>
<!-- Please remove the targets you don't need in order
to exclude Revit versions your add-in won't support
use the list below for matching Revit version with .NET target
2014 | net40
2015 | net45
2016 | net451
2017 | net452
2018 | net46
2019 | net47
2020 | net471
2021 | net48
2022 | net48
For example you can exclude Revit 2014, by simply removing net40 target belows
-->
<TargetFrameworks>net40;net45;net451;net452;net46;net47;net471;net48</TargetFrameworks>
<RuntimeIdentifiers>win</RuntimeIdentifiers>
<PublishSingleFile>true</PublishSingleFile>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Debug One'">
<!-- You could debug just ONE addin version,
instead of building all the versions above.
Just put ONE target from the list above
e.g. if you want to debug ONLY Revit 2019,
put net47 below and switch to 'Debug One' configuration
-->
<TargetFrameworks>net48</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'net40' ">
<RevitVersion>2014</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net45' ">
<RevitVersion>2015</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net451' ">
<RevitVersion>2016</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net452' ">
<RevitVersion>2017</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net46' ">
<RevitVersion>2018</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net47' ">
<RevitVersion>2019</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net471' ">
<RevitVersion>2020</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net48' ">
<RevitVersion>2021</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net48' ">
<TargetFramework>net48</TargetFramework>
<RevitVersion>2022</RevitVersion>
</PropertyGroup>

<PropertyGroup>
<!-- Forcibly set platform to 'x64' and ignore architecture-related problems -->
<PlatformTarget>x64</PlatformTarget>
<Platforms>x64</Platforms>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>

<!-- Force the project to use the legacy debugger engine -->
<DebugEngines>{351668CC-8477-4fbf-BFE3-5F1006E4DB1F}</DebugEngines>

<!-- Invert the behavior of new .csproj format - exclude files by default -->
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<EnableDefaultItems>false</EnableDefaultItems>

<!-- Define handy symbols to use in the code in order to accommodate different Revit versions,
e.g. by wrapping legacy / deprecated API calls with #if REVIT2014 | REVIT2015 -->
<DefineConstants>REVIT$(RevitVersion);WINFORMS</DefineConstants>
<PreprocessorDefinitions>$(DefineConstants)</PreprocessorDefinitions>

<!-- Multiple targets can cause obj folder locking by concurrent builds -->
<BuildInParallel>false</BuildInParallel>

<!-- Override 'OutputPath' to Debug/Release + Revit version -->
<LangVersion>latest</LangVersion>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath>..\bin\$(Configuration)\$(RevitVersion)</OutputPath>
<EnableDefaultItems>false</EnableDefaultItems>
</PropertyGroup>

<PropertyGroup Condition="$(Configuration.Contains('Debug'))">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
<DebugType>full</DebugType>
<OutputPath></OutputPath>
</PropertyGroup>


<ItemGroup Condition="$(DefineConstants.Contains('WINFORMS'))">
<Reference Include="System.Windows.Forms" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Autodesk.Revit.SDK" Version="2014.*" Condition=" '$(RevitVersion)' == '2014' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2015.*" Condition=" '$(RevitVersion)' == '2015' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2016.*" Condition=" '$(RevitVersion)' == '2016' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2017.*" Condition=" '$(RevitVersion)' == '2017' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2018.*" Condition=" '$(RevitVersion)' == '2018' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2019.*" Condition=" '$(RevitVersion)' == '2019' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2020.1.0" Condition=" '$(RevitVersion)' == '2020' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2021.*" Condition=" '$(RevitVersion)' == '2021' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2022.*" Condition=" '$(RevitVersion)' == '2022' " PrivateAssets="All" />
<PackageReference Include="AvalonEdit" Version="6.0.1" />

</ItemGroup>

<Target Name="PreventRevitSDKCopyLocal" AfterTargets="ResolveReferences">
<ItemGroup>
<!-- A temporary fix for Revit SDK files being copied to the output folder -->
<ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)" Condition="'%(ReferenceCopyLocalPaths.NuGetPackageId)' == 'Autodesk.Revit.SDK'" />
</ItemGroup>
</Target>

<ItemGroup>
<Reference Include="IronPython">
<HintPath>..\RequiredLibraries\IronPython.dll</HintPath>
Expand All @@ -137,8 +33,6 @@
<HintPath>..\RequiredLibraries\Microsoft.Scripting.Metadata.dll</HintPath>
</Reference>
</ItemGroup>


<ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
Expand Down Expand Up @@ -179,18 +73,4 @@
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>

<!--
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>-->
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
14 changes: 0 additions & 14 deletions PythonConsoleControl/PythonConsoleControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.IO;
using System.Windows.Threading;
using System.Xml;
using ICSharpCode.AvalonEdit.CodeCompletion;
using ICSharpCode.AvalonEdit.Folding;
using ICSharpCode.AvalonEdit.Highlighting;
using ICSharpCode.AvalonEdit.Rendering;
using Microsoft.Win32;


namespace PythonConsoleControl
Expand Down
10 changes: 0 additions & 10 deletions PythonConsoleControl/PythonConsoleHighlightingColorizer.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
// Copyright (c) 2010 Joe Moorhouse

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Windows;
using System.Windows.Media;
using System.Windows.Threading;

using ICSharpCode.AvalonEdit;
using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.AvalonEdit.Rendering;
using ICSharpCode.AvalonEdit.Highlighting;

namespace PythonConsoleControl
Expand Down
3 changes: 0 additions & 3 deletions PythonConsoleControl/PythonConsoleHost.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// Copyright (c) 2010 Joe Moorhouse

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Threading;
using IronPython.Hosting;
using IronPython.Runtime;
Expand Down
4 changes: 0 additions & 4 deletions PythonConsoleControl/PythonConsolePad.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Copyright (c) 2010 Joe Moorhouse

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICSharpCode.AvalonEdit;
using System.Windows.Media;

Expand Down
7 changes: 0 additions & 7 deletions PythonConsoleControl/PythonEditingCommandHandler.cs
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
// Copyright (c) 2010 Joe Moorhouse

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Documents;
using System.Windows.Input;
using System.Reflection;

using ICSharpCode.AvalonEdit;
using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.AvalonEdit.Highlighting;
using ICSharpCode.AvalonEdit.Utils;
using ICSharpCode.AvalonEdit.Editing;

namespace PythonConsoleControl
Expand Down
1 change: 0 additions & 1 deletion PythonConsoleControl/PythonOutputStream.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright (c) 2010 Joe Moorhouse

using System;
using System.IO;
using System.Text;

Expand Down
2 changes: 0 additions & 2 deletions PythonConsoleControl/PythonTextEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICSharpCode.AvalonEdit;
using ICSharpCode.AvalonEdit.Editing;
using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.AvalonEdit.CodeCompletion;
using System.Windows;
using System.Windows.Media;
using System.Windows.Threading;
using System.Windows.Input;
using System.Threading;
Expand Down
2 changes: 1 addition & 1 deletion RevitPythonShell/CommandLoaderBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Autodesk.Revit.UI;
using Autodesk.Revit.DB;
using Autodesk.Revit.Attributes;
using RevitPythonShell.RpsRuntime;
using RpsRuntime;

namespace RevitPythonShell
{
Expand Down
Loading