1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <Project ToolsVersion =" Current" DefaultTargets =" Build" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3+ <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 >{7B4FB722-905A-4851-8399-1E0F3361CCD8}</ProjectGuid >
9+ <OutputType >Exe</OutputType >
10+ <AppDesignerFolder >Properties</AppDesignerFolder >
11+ <RootNamespace >CSExeCOMServer</RootNamespace >
12+ <AssemblyName >CSExeCOMServer</AssemblyName >
13+ <TargetFrameworkVersion >v4.0</TargetFrameworkVersion >
14+ <FileAlignment >512</FileAlignment >
15+ <StartupObject >CSExeCOMServer.Program</StartupObject >
16+ <SignAssembly >false</SignAssembly >
17+ <AssemblyOriginatorKeyFile >
18+ </AssemblyOriginatorKeyFile >
19+ <FileUpgradeFlags >
20+ </FileUpgradeFlags >
21+ <UpgradeBackupLocation >
22+ </UpgradeBackupLocation >
23+ <OldToolsVersion >3.5</OldToolsVersion >
24+ <TargetFrameworkProfile >Client</TargetFrameworkProfile >
25+ </PropertyGroup >
26+ <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " >
27+ <DebugSymbols >true</DebugSymbols >
28+ <DebugType >full</DebugType >
29+ <Optimize >false</Optimize >
30+ <OutputPath >Debug\</OutputPath >
31+ <DefineConstants >DEBUG;TRACE</DefineConstants >
32+ <ErrorReport >prompt</ErrorReport >
33+ <WarningLevel >4</WarningLevel >
34+ <PlatformTarget >AnyCPU</PlatformTarget >
35+ </PropertyGroup >
36+ <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " >
37+ <DebugType >pdbonly</DebugType >
38+ <Optimize >true</Optimize >
39+ <OutputPath >Release\</OutputPath >
40+ <DefineConstants >TRACE</DefineConstants >
41+ <ErrorReport >prompt</ErrorReport >
42+ <WarningLevel >4</WarningLevel >
43+ <PlatformTarget >AnyCPU</PlatformTarget >
44+ </PropertyGroup >
45+ <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|x64'" >
46+ <DebugSymbols >true</DebugSymbols >
47+ <OutputPath >bin\x64\Debug\</OutputPath >
48+ <DefineConstants >DEBUG;TRACE</DefineConstants >
49+ <DebugType >full</DebugType >
50+ <PlatformTarget >x64</PlatformTarget >
51+ <LangVersion >7.3</LangVersion >
52+ <ErrorReport >prompt</ErrorReport >
53+ </PropertyGroup >
54+ <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release|x64'" >
55+ <OutputPath >bin\x64\Release\</OutputPath >
56+ <DefineConstants >TRACE</DefineConstants >
57+ <Optimize >true</Optimize >
58+ <DebugType >pdbonly</DebugType >
59+ <PlatformTarget >x64</PlatformTarget >
60+ <LangVersion >7.3</LangVersion >
61+ <ErrorReport >prompt</ErrorReport >
62+ </PropertyGroup >
63+ <PropertyGroup >
64+ <AutoGenerateBindingRedirects >true</AutoGenerateBindingRedirects >
65+ </PropertyGroup >
66+ <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|x86'" >
67+ <DebugSymbols >true</DebugSymbols >
68+ <OutputPath >bin\x86\Debug\</OutputPath >
69+ <DefineConstants >DEBUG;TRACE</DefineConstants >
70+ <DebugType >full</DebugType >
71+ <PlatformTarget >x86</PlatformTarget >
72+ <LangVersion >7.3</LangVersion >
73+ <ErrorReport >prompt</ErrorReport >
74+ </PropertyGroup >
75+ <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release|x86'" >
76+ <OutputPath >bin\x86\Release\</OutputPath >
77+ <DefineConstants >TRACE</DefineConstants >
78+ <Optimize >true</Optimize >
79+ <DebugType >pdbonly</DebugType >
80+ <PlatformTarget >x86</PlatformTarget >
81+ <LangVersion >7.3</LangVersion >
82+ <ErrorReport >prompt</ErrorReport >
83+ </PropertyGroup >
84+ <ItemGroup >
85+ <Reference Include =" System" />
86+ </ItemGroup >
87+ <ItemGroup >
88+ <Compile Include =" HelperMethods.cs" />
89+ <Compile Include =" IClassFactory.cs" />
90+ <Compile Include =" ISimpleObject.cs" />
91+ <Compile Include =" ISimpleObjectEvents.cs" />
92+ <Compile Include =" ReferenceCountedObject.cs" />
93+ <Compile Include =" SimpleObject.cs" />
94+ <Compile Include =" ExecutableComServer.cs" />
95+ <Compile Include =" NativeMethods.cs" />
96+ <Compile Include =" Program.cs" />
97+ <Compile Include =" Properties\AssemblyInfo.cs" />
98+ <Compile Include =" SimpleObjectClassFactory.cs" />
99+ </ItemGroup >
100+ <ItemGroup >
101+ <None Include =" app.config" />
102+ <Content Include =" CSExeCOMClient.ps1" >
103+ <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
104+ </Content >
105+ </ItemGroup >
106+ <Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
107+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
108+ Other similar extension points exist, see Microsoft.Common.targets.
109+ <Target Name="BeforeBuild">
110+ </Target>
111+ <Target Name="AfterBuild">
112+ </Target>
113+ -->
114+ <PropertyGroup >
115+ <PostBuildEvent >%25windir%25\system32\net.exe session > nul 2>& 1
116+ if not %25errorLevel%25 == 0 (
117+ echo Failure: Current permissions inadequate
118+ exit 1
119+ )
120+ if "$(PlatformName)"=="x64" (
121+ set regasm=%25windir%25\Microsoft.NET\Framework64\v4.0.30319\regasm.exe
122+ ) else if "$(PlatformName)"=="x86" (
123+ set regasm=%25windir%25\Microsoft.NET\Framework\v4.0.30319\regasm.exe
124+ ) else (
125+ echo Failure: Cannot determine platform
126+ exit 2
127+ )
128+ echo Generate and register type library.
129+ %25regasm%25 /tlb "$(TargetPath)"
130+ echo Register the component.
131+ %25regasm%25 "$(TargetPath)"</PostBuildEvent >
132+ </PropertyGroup >
133+ </Project >
0 commit comments