Skip to content

Commit cb16ad7

Browse files
committed
Get project set up, needs COM activation by CLSID?
1 parent 1cfaecf commit cb16ad7

File tree

5 files changed

+96
-655
lines changed

5 files changed

+96
-655
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
3+
<assemblyIdentity version="1.0.0.0" name="ComInprocTestbed"/>
4+
5+
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
6+
<application>
7+
<!-- A list of the Windows versions that this application has been tested on
8+
and is designed to work with. Uncomment the appropriate elements
9+
and Windows will automatically select the most compatible environment. -->
10+
11+
<!-- Windows Vista -->
12+
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
13+
14+
<!-- Windows 7 -->
15+
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
16+
17+
<!-- Windows 8 -->
18+
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
19+
20+
<!-- Windows 8.1 -->
21+
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
22+
23+
<!-- Windows 10 -->
24+
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
25+
26+
</application>
27+
</compatibility>
28+
29+
<dependency>
30+
<dependentAssembly>
31+
<assemblyIdentity
32+
name="Microsoft.Management.Deployment.InProc.dll"
33+
version="0.0.0.0"/>
34+
</dependentAssembly>
35+
</dependency>
36+
</assembly>

src/ComInprocTestbed/ComInprocTestbed.vcxproj

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.250303.1\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.250303.1\build\native\Microsoft.Windows.CppWinRT.props')" />
34
<PropertyGroup Label="Globals">
45
<VCProjectVersion>15.0</VCProjectVersion>
56
<ProjectGuid>{E5BCFF58-7D0C-4770-ABB9-AECE1027CD94}</ProjectGuid>
@@ -133,7 +134,47 @@
133134
<ItemGroup>
134135
<ClCompile Include="main.cpp" />
135136
</ItemGroup>
137+
<ItemGroup>
138+
<None Include="packages.config" />
139+
</ItemGroup>
140+
<ItemGroup>
141+
<ProjectReference Include="..\Microsoft.Management.Deployment.InProc\Microsoft.Management.Deployment.InProc.vcxproj">
142+
<Project>{9ac3c6a4-1875-4d3e-bf9c-c31e81eff6b4}</Project>
143+
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
144+
<LinkLibraryDependencies>false</LinkLibraryDependencies>
145+
<Private>true</Private>
146+
<OutputItemType>Content</OutputItemType>
147+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
148+
</ProjectReference>
149+
<ProjectReference Include="..\Microsoft.Management.Deployment\Microsoft.Management.Deployment.vcxproj">
150+
<Project>{1cc41a9a-ae66-459d-9210-1e572dd7be69}</Project>
151+
</ProjectReference>
152+
<ProjectReference Include="..\WindowsPackageManager\WindowsPackageManager.vcxproj">
153+
<Project>{2046b5af-666d-4ce8-8d3e-c32c57908a56}</Project>
154+
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
155+
<LinkLibraryDependencies>false</LinkLibraryDependencies>
156+
<Private>true</Private>
157+
<OutputItemType>Content</OutputItemType>
158+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
159+
</ProjectReference>
160+
</ItemGroup>
161+
<ItemGroup>
162+
<CopyFileToFolders Include="..\Microsoft.Management.Deployment.InProc\Microsoft.Management.Deployment.InProc.dll.manifest">
163+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
164+
</CopyFileToFolders>
165+
</ItemGroup>
166+
<ItemGroup>
167+
<Manifest Include="ComInprocTestbed.manifest" />
168+
</ItemGroup>
136169
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
137170
<ImportGroup Label="ExtensionTargets">
171+
<Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.250303.1\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.250303.1\build\native\Microsoft.Windows.CppWinRT.targets')" />
138172
</ImportGroup>
173+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
174+
<PropertyGroup>
175+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
176+
</PropertyGroup>
177+
<Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.250303.1\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.250303.1\build\native\Microsoft.Windows.CppWinRT.props'))" />
178+
<Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.250303.1\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.250303.1\build\native\Microsoft.Windows.CppWinRT.targets'))" />
179+
</Target>
139180
</Project>

src/ComInprocTestbed/ComInprocTestbed.vcxproj.filters

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,13 @@
1919
<Filter>Source Files</Filter>
2020
</ClCompile>
2121
</ItemGroup>
22+
<ItemGroup>
23+
<None Include="packages.config" />
24+
</ItemGroup>
25+
<ItemGroup>
26+
<CopyFileToFolders Include="..\Microsoft.Management.Deployment.InProc\Microsoft.Management.Deployment.InProc.dll.manifest" />
27+
</ItemGroup>
28+
<ItemGroup>
29+
<Manifest Include="ComInprocTestbed.manifest" />
30+
</ItemGroup>
2231
</Project>

0 commit comments

Comments
 (0)