Skip to content

Commit

Permalink
adding addin manifest and create at compile time
Browse files Browse the repository at this point in the history
  • Loading branch information
alvpickmans committed Jan 17, 2020
1 parent 26404ce commit 8ee1953
Show file tree
Hide file tree
Showing 12 changed files with 1,283 additions and 339 deletions.
40 changes: 1 addition & 39 deletions PythonConsoleControl/PythonConsoleControl.csproj
Expand Up @@ -85,11 +85,6 @@
<OutputPath>..\bin\Debug\$(RevitVersion)</OutputPath>
</PropertyGroup>

<ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="WindowsBase" />
</ItemGroup>

<ItemGroup Condition="$(DefineConstants.Contains('WINFORMS'))">
<Reference Include="System.Windows.Forms" />
Expand Down Expand Up @@ -118,15 +113,6 @@


<ItemGroup>
<!--<Reference Include="Microsoft.Dynamic">
<HintPath>..\RequiredLibraries\Microsoft.Dynamic.dll</HintPath>
</Reference>-->
<Reference Include="Microsoft.Scripting">
<HintPath>..\RequiredLibraries\Microsoft.Scripting.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Scripting.Metadata">
<HintPath>..\RequiredLibraries\Microsoft.Scripting.Metadata.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
Expand Down Expand Up @@ -166,31 +152,7 @@
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<!--<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.0">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4 %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<!--
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
Expand Down
86 changes: 43 additions & 43 deletions RevitPythonShell.sln
Expand Up @@ -11,54 +11,54 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RevitPythonShell", "RevitPy
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PythonConsoleControl", "PythonConsoleControl\PythonConsoleControl.csproj", "{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RpsRuntime", "RpsRuntime\RpsRuntime.csproj", "{C8446636-C663-409F-82D0-72C0D55BBA1C}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RpsRuntime", "RpsRuntime\RpsRuntime.csproj", "{C8446636-C663-409F-82D0-72C0D55BBA1C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug 2014|Any CPU = Debug 2014|Any CPU
Debug 2015|Any CPU = Debug 2015|Any CPU
Debug 2016|Any CPU = Debug 2016|Any CPU
Debug 2017|Any CPU = Debug 2017|Any CPU
Debug 2018|Any CPU = Debug 2018|Any CPU
Debug 2019|Any CPU = Debug 2019|Any CPU
Debug One|Any CPU = Debug One|Any CPU
Debug One|x64 = Debug One|x64
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2014|Any CPU.ActiveCfg = Debug 2014|Any CPU
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2014|Any CPU.Build.0 = Debug 2014|Any CPU
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2015|Any CPU.ActiveCfg = Debug 2015|Any CPU
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2015|Any CPU.Build.0 = Debug 2015|Any CPU
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2016|Any CPU.ActiveCfg = Debug 2016|Any CPU
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2016|Any CPU.Build.0 = Debug 2016|Any CPU
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2017|Any CPU.ActiveCfg = Debug 2017|Any CPU
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2017|Any CPU.Build.0 = Debug 2017|Any CPU
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2018|Any CPU.ActiveCfg = Debug 2018|Any CPU
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2018|Any CPU.Build.0 = Debug 2018|Any CPU
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2019|Any CPU.ActiveCfg = Debug 2019|Any CPU
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2019|Any CPU.Build.0 = Debug 2019|Any CPU
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2014|Any CPU.ActiveCfg = Debug One|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2014|Any CPU.Build.0 = Debug One|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2015|Any CPU.ActiveCfg = Debug One|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2015|Any CPU.Build.0 = Debug One|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2016|Any CPU.ActiveCfg = Debug One|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2016|Any CPU.Build.0 = Debug One|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2017|Any CPU.ActiveCfg = Debug One|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2017|Any CPU.Build.0 = Debug One|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2018|Any CPU.ActiveCfg = Debug One|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2018|Any CPU.Build.0 = Debug One|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2019|Any CPU.ActiveCfg = Debug One|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2019|Any CPU.Build.0 = Debug One|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2014|Any CPU.ActiveCfg = Debug One|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2014|Any CPU.Build.0 = Debug One|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2015|Any CPU.ActiveCfg = Debug One|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2015|Any CPU.Build.0 = Debug One|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2016|Any CPU.ActiveCfg = Debug One|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2016|Any CPU.Build.0 = Debug One|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2017|Any CPU.ActiveCfg = Debug One|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2017|Any CPU.Build.0 = Debug One|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2018|Any CPU.ActiveCfg = Debug One|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2018|Any CPU.Build.0 = Debug One|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2019|Any CPU.ActiveCfg = Debug One|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2019|Any CPU.Build.0 = Debug One|x64
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug One|Any CPU.ActiveCfg = Debug One|x64
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug One|Any CPU.Build.0 = Debug One|x64
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug One|x64.ActiveCfg = Debug One|x64
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug One|x64.Build.0 = Debug One|x64
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug|Any CPU.ActiveCfg = Debug|x64
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug|Any CPU.Build.0 = Debug|x64
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug|x64.ActiveCfg = Debug|x64
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug|x64.Build.0 = Debug|x64
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Release|Any CPU.ActiveCfg = Release|x64
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Release|Any CPU.Build.0 = Release|x64
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Release|x64.ActiveCfg = Release|x64
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Release|x64.Build.0 = Release|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug One|Any CPU.ActiveCfg = Debug One|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug One|Any CPU.Build.0 = Debug One|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug One|x64.ActiveCfg = Debug One|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug One|x64.Build.0 = Debug One|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug|Any CPU.ActiveCfg = Debug|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug|Any CPU.Build.0 = Debug|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug|x64.ActiveCfg = Debug|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug|x64.Build.0 = Debug|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Release|Any CPU.ActiveCfg = Release|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Release|Any CPU.Build.0 = Release|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Release|x64.ActiveCfg = Release|x64
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Release|x64.Build.0 = Release|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug One|Any CPU.ActiveCfg = Debug One|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug One|Any CPU.Build.0 = Debug One|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug One|x64.ActiveCfg = Debug One|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug One|x64.Build.0 = Debug One|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug|Any CPU.ActiveCfg = Debug|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug|Any CPU.Build.0 = Debug|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug|x64.ActiveCfg = Debug|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug|x64.Build.0 = Debug|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Release|Any CPU.ActiveCfg = Release|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Release|Any CPU.Build.0 = Release|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Release|x64.ActiveCfg = Release|x64
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
3 changes: 3 additions & 0 deletions RevitPythonShell/FodyWeavers.xml
@@ -0,0 +1,3 @@
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<Costura />
</Weavers>
111 changes: 111 additions & 0 deletions RevitPythonShell/FodyWeavers.xsd
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. -->
<xs:element name="Weavers">
<xs:complexType>
<xs:all>
<xs:element name="Costura" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:all>
<xs:element minOccurs="0" maxOccurs="1" name="ExcludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="IncludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="Unmanaged32Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="Unmanaged64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="PreloadOrder" type="xs:string">
<xs:annotation>
<xs:documentation>The order of preloaded assemblies, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
<xs:attribute name="CreateTemporaryAssemblies" type="xs:boolean">
<xs:annotation>
<xs:documentation>This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IncludeDebugSymbols" type="xs:boolean">
<xs:annotation>
<xs:documentation>Controls if .pdbs for reference assemblies are also embedded.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DisableCompression" type="xs:boolean">
<xs:annotation>
<xs:documentation>Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DisableCleanup" type="xs:boolean">
<xs:annotation>
<xs:documentation>As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="LoadAtModuleInit" type="xs:boolean">
<xs:annotation>
<xs:documentation>Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IgnoreSatelliteAssemblies" type="xs:boolean">
<xs:annotation>
<xs:documentation>Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ExcludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with |</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IncludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Unmanaged32Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Unmanaged64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="PreloadOrder" type="xs:string">
<xs:annotation>
<xs:documentation>The order of preloaded assemblies, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="VerifyAssembly" type="xs:boolean">
<xs:annotation>
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="VerifyIgnoreCodes" type="xs:string">
<xs:annotation>
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="GenerateXsd" type="xs:boolean">
<xs:annotation>
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>

0 comments on commit 8ee1953

Please sign in to comment.