Skip to content
This repository was archived by the owner on May 19, 2020. It is now read-only.

Commit b4c6af6

Browse files
committed
ST10 & updated project to latest format
1 parent 150ec5f commit b4c6af6

File tree

11 files changed

+162
-176
lines changed

11 files changed

+162
-176
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -216,4 +216,6 @@ pip-log.txt
216216

217217
# Added by Jason Newell
218218
.exe
219-
.dll
219+
.dll
220+
/.vs
221+
/src/.vs/SolidEdge.Community/v15/Server/sqlite3

src/NuGet/SolidEdge.Community/SolidEdge.Community.nuspec

-26
This file was deleted.

src/NuGet/SolidEdge.Community/tools/install.ps1

-12
This file was deleted.

src/QA/Program.cs

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using SolidEdgeCommunity;
2+
using SolidEdgeCommunity.Extensions;
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Linq;
6+
using System.Text;
7+
8+
namespace QA
9+
{
10+
class Program
11+
{
12+
static void Main(string[] args)
13+
{
14+
var application = SolidEdgeUtils.Connect();
15+
var documents = application.Documents;
16+
var assemblyDocument = documents.AddAssemblyDocument();
17+
var draftDocument = documents.AddDraftDocument();
18+
}
19+
}
20+
}

src/QA/Properties/AssemblyInfo.cs

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("QA")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("QA")]
13+
[assembly: AssemblyCopyright("Copyright © 2017")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("367f7e41-0ae9-4d4b-8aff-953cb29a68a8")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]

src/QA/QA.csproj

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{367F7E41-0AE9-4D4B-8AFF-953CB29A68A8}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<RootNamespace>QA</RootNamespace>
10+
<AssemblyName>QA</AssemblyName>
11+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
</PropertyGroup>
14+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
15+
<PlatformTarget>AnyCPU</PlatformTarget>
16+
<DebugSymbols>true</DebugSymbols>
17+
<DebugType>full</DebugType>
18+
<Optimize>false</Optimize>
19+
<OutputPath>bin\Debug\</OutputPath>
20+
<DefineConstants>DEBUG;TRACE</DefineConstants>
21+
<ErrorReport>prompt</ErrorReport>
22+
<WarningLevel>4</WarningLevel>
23+
</PropertyGroup>
24+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25+
<PlatformTarget>AnyCPU</PlatformTarget>
26+
<DebugType>pdbonly</DebugType>
27+
<Optimize>true</Optimize>
28+
<OutputPath>bin\Release\</OutputPath>
29+
<DefineConstants>TRACE</DefineConstants>
30+
<ErrorReport>prompt</ErrorReport>
31+
<WarningLevel>4</WarningLevel>
32+
</PropertyGroup>
33+
<ItemGroup>
34+
<Reference Include="Interop.SolidEdge, Version=110.0.0.0, Culture=neutral, processorArchitecture=MSIL">
35+
<HintPath>..\packages\Interop.SolidEdge.110.0.0\lib\net40\Interop.SolidEdge.dll</HintPath>
36+
</Reference>
37+
<Reference Include="System" />
38+
<Reference Include="System.Core" />
39+
<Reference Include="System.Xml.Linq" />
40+
<Reference Include="System.Data.DataSetExtensions" />
41+
<Reference Include="Microsoft.CSharp" />
42+
<Reference Include="System.Data" />
43+
<Reference Include="System.Xml" />
44+
</ItemGroup>
45+
<ItemGroup>
46+
<Compile Include="Program.cs" />
47+
<Compile Include="Properties\AssemblyInfo.cs" />
48+
</ItemGroup>
49+
<ItemGroup>
50+
<ProjectReference Include="..\SolidEdge.Community\SolidEdge.Community.csproj">
51+
<Project>{49dafaf3-c18c-4b3d-9006-bbfbfeebbcb4}</Project>
52+
<Name>SolidEdge.Community</Name>
53+
</ProjectReference>
54+
</ItemGroup>
55+
<ItemGroup>
56+
<None Include="packages.config" />
57+
</ItemGroup>
58+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
59+
</Project>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Interop.SolidEdge" version="109.0.0" targetFramework="net40" />
3+
<package id="Interop.SolidEdge" version="110.0.0" targetFramework="net40" />
44
</packages>

src/SolidEdge.Community.sln

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,31 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 14
4-
VisualStudioVersion = 14.0.25420.1
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27004.2005
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SolidEdge.Community", "SolidEdge.Community\SolidEdge.Community.csproj", "{0E7A7AE5-0D9D-4608-A959-FD0C90E06841}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SolidEdge.Community", "SolidEdge.Community\SolidEdge.Community.csproj", "{49DAFAF3-C18C-4B3D-9006-BBFBFEEBBCB4}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QA", "QA\QA.csproj", "{367F7E41-0AE9-4D4B-8AFF-953CB29A68A8}"
79
EndProject
810
Global
911
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1012
Debug|Any CPU = Debug|Any CPU
1113
Release|Any CPU = Release|Any CPU
1214
EndGlobalSection
1315
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{0E7A7AE5-0D9D-4608-A959-FD0C90E06841}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{0E7A7AE5-0D9D-4608-A959-FD0C90E06841}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{0E7A7AE5-0D9D-4608-A959-FD0C90E06841}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{0E7A7AE5-0D9D-4608-A959-FD0C90E06841}.Release|Any CPU.Build.0 = Release|Any CPU
16+
{49DAFAF3-C18C-4B3D-9006-BBFBFEEBBCB4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{49DAFAF3-C18C-4B3D-9006-BBFBFEEBBCB4}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{49DAFAF3-C18C-4B3D-9006-BBFBFEEBBCB4}.Release|Any CPU.ActiveCfg = Release|Any CPU
19+
{49DAFAF3-C18C-4B3D-9006-BBFBFEEBBCB4}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{367F7E41-0AE9-4D4B-8AFF-953CB29A68A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{367F7E41-0AE9-4D4B-8AFF-953CB29A68A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{367F7E41-0AE9-4D4B-8AFF-953CB29A68A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{367F7E41-0AE9-4D4B-8AFF-953CB29A68A8}.Release|Any CPU.Build.0 = Release|Any CPU
1824
EndGlobalSection
1925
GlobalSection(SolutionProperties) = preSolution
2026
HideSolutionNode = FALSE
2127
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {6FBC4A16-50F3-4031-9EB8-663F23A3B1E1}
30+
EndGlobalSection
2231
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,6 @@
1-
using System.Reflection;
2-
using System.Runtime.CompilerServices;
3-
using System.Runtime.InteropServices;
4-
5-
// General Information about an assembly is controlled through the following
6-
// set of attributes. Change these attribute values to modify the information
7-
// associated with an assembly.
8-
[assembly: AssemblyTitle("SolidEdge.Community")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("SolidEdge.Community")]
13-
[assembly: AssemblyCopyright("")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
1+
using System.Runtime.InteropServices;
162

173
// Setting ComVisible to false makes the types in this assembly not visible
184
// to COM components. If you need to access a type in this assembly from
195
// COM, set the ComVisible attribute to true on that type.
20-
[assembly: ComVisible(false)]
21-
22-
// The following GUID is for the ID of the typelib if this project is exposed to COM
23-
[assembly: Guid("2148b645-0631-440e-bf45-dd70ccefbb7f")]
24-
25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
35-
36-
// ONLY INCREMENT THIS VALUE ON MAJOR RELEASES!
37-
[assembly: AssemblyVersion("109.0.0.0")]
38-
39-
// This version should match the NuGet version.
40-
[assembly: AssemblyFileVersion("109.0.0.0")]
6+
[assembly: ComVisible(false)]
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,32 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
43
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{0E7A7AE5-0D9D-4608-A959-FD0C90E06841}</ProjectGuid>
8-
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>SolidEdgeCommunity</RootNamespace>
11-
<AssemblyName>SolidEdge.Community</AssemblyName>
12-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
4+
<TargetFramework>NET40</TargetFramework>
5+
<Version>110.0.0</Version>
6+
<Authors>Jason Newell</Authors>
7+
<Company>Jason Newell</Company>
8+
<Description>Community provided package for automating Solid Edge.</Description>
9+
<PackageLicenseUrl>https://github.com/SolidEdgeCommunity/SolidEdge.Community/blob/master/LICENSE.md</PackageLicenseUrl>
10+
<PackageProjectUrl>https://github.com/SolidEdgeCommunity/SolidEdge.Community</PackageProjectUrl>
11+
<PackageIconUrl>https://raw.githubusercontent.com/SolidEdgeCommunity/SolidEdge.Community/master/media/icon.png</PackageIconUrl>
12+
<RepositoryUrl>https://github.com/SolidEdgeCommunity/SolidEdge.Community.git</RepositoryUrl>
13+
<RepositoryType>git</RepositoryType>
14+
<PackageTags>interop solidedge community contrib</PackageTags>
15+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1416
</PropertyGroup>
15-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16-
<DebugSymbols>true</DebugSymbols>
17-
<DebugType>full</DebugType>
18-
<Optimize>false</Optimize>
19-
<OutputPath>bin\Debug\</OutputPath>
20-
<DefineConstants>DEBUG;TRACE</DefineConstants>
21-
<ErrorReport>prompt</ErrorReport>
22-
<WarningLevel>4</WarningLevel>
23-
</PropertyGroup>
24-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25-
<DebugType>pdbonly</DebugType>
26-
<Optimize>true</Optimize>
27-
<OutputPath>bin\Release\</OutputPath>
28-
<DefineConstants>TRACE</DefineConstants>
29-
<ErrorReport>prompt</ErrorReport>
30-
<WarningLevel>4</WarningLevel>
31-
<DocumentationFile>bin\Release\SolidEdge.Community.xml</DocumentationFile>
17+
18+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
19+
<DocumentationFile>bin\Release\net40\SolidEdge.Community.xml</DocumentationFile>
3220
</PropertyGroup>
21+
3322
<ItemGroup>
34-
<Reference Include="Interop.SolidEdge, Version=109.0.0.0, Culture=neutral, processorArchitecture=MSIL">
35-
<HintPath>..\packages\Interop.SolidEdge.109.0.0\lib\net40\Interop.SolidEdge.dll</HintPath>
36-
<Private>True</Private>
37-
</Reference>
38-
<Reference Include="System" />
39-
<Reference Include="System.Core" />
40-
<Reference Include="System.Drawing" />
41-
<Reference Include="System.Windows.Forms" />
42-
<Reference Include="System.Xml.Linq" />
43-
<Reference Include="System.Data.DataSetExtensions" />
44-
<Reference Include="Microsoft.CSharp" />
45-
<Reference Include="System.Data" />
46-
<Reference Include="System.Xml" />
23+
<PackageReference Include="Interop.SolidEdge" Version="[110.0.0, 111.0.0)">
24+
<PrivateAssets>None</PrivateAssets>
25+
</PackageReference>
4726
</ItemGroup>
27+
4828
<ItemGroup>
49-
<Compile Include="ConnectionPointController.cs" />
50-
<Compile Include="ConnectionPointControllerBase.cs" />
51-
<Compile Include="EventSink.cs" />
52-
<Compile Include="Extensions\Arc3DExtensions.cs" />
53-
<Compile Include="Extensions\AssemblyDocumentExtensions.cs" />
54-
<Compile Include="Extensions\DraftDocumentExtensions.cs" />
55-
<Compile Include="Extensions\DrawingViewExtensions.cs" />
56-
<Compile Include="Extensions\Line3DExtensions.cs" />
57-
<Compile Include="Extensions\OccurrenceExtensions.cs" />
58-
<Compile Include="Extensions\PartDocumentExtensions.cs" />
59-
<Compile Include="Extensions\SectionExtensions.cs" />
60-
<Compile Include="Extensions\SheetMetalDocumentExtensions.cs" />
61-
<Compile Include="Extensions\SolidEdgeDocumentExtensions.cs" />
62-
<Compile Include="Extensions\WeldmentDocumentExtensions.cs" />
63-
<Compile Include="IsolatedTask.cs" />
64-
<Compile Include="IsolatedTaskProxy.cs" />
65-
<Compile Include="Runtime\InteropServices\ComObject.cs" />
66-
<Compile Include="OleMessageFilter.cs" />
67-
<Compile Include="Properties\AssemblyInfo.cs" />
68-
<Compile Include="Extensions\PropertiesExtensions.cs" />
69-
<Compile Include="Extensions\PropertySetsExtensions.cs" />
70-
<Compile Include="Extensions\MouseExtensions.cs" />
71-
<Compile Include="Extensions\SheetExtensions.cs" />
72-
<Compile Include="Runtime\InteropServices\ComTypes\IDispatch.cs" />
73-
<Compile Include="SolidEdgeUtils.cs" />
74-
<Compile Include="Extensions\ApplicationExtensions.cs" />
75-
<Compile Include="Extensions\DocumentsExtensions.cs" />
76-
<Compile Include="Extensions\EnvironmentExtensions.cs" />
77-
<Compile Include="Extensions\RefPlanesExtensions.cs" />
78-
<Compile Include="Extensions\WindowExtensions.cs" />
79-
</ItemGroup>
80-
<ItemGroup>
81-
<None Include="packages.config" />
29+
<Reference Include="System.Windows.Forms" />
8230
</ItemGroup>
83-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
84-
<!--<Import Project="SolidEdge.Community.targets" />-->
85-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
86-
Other similar extension points exist, see Microsoft.Common.targets.
87-
<Target Name="BeforeBuild">
88-
</Target>
89-
<Target Name="AfterBuild">
90-
</Target>
91-
-->
92-
</Project>
31+
32+
</Project>

src/build_nuget.cmd

-8
This file was deleted.

0 commit comments

Comments
 (0)