/ src / modules / cmdpal / ext / Microsoft.CmdPal.Ext.Calc / Microsoft.CmdPal.Ext.Calc.csproj
Microsoft.CmdPal.Ext.Calc.csproj
 1  <Project Sdk="Microsoft.NET.Sdk">
 2    <Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
 3    <Import Project="$(RepoRoot)src\Common.Dotnet.AotCompatibility.props" />
 4      <Import Project="..\Common.ExtDependencies.props" />
 5    <PropertyGroup>
 6      <RootNamespace>Microsoft.CmdPal.Ext.Calc</RootNamespace>
 7      <OutputPath>$(SolutionDir)$(Platform)\$(Configuration)\WinUI3Apps\CmdPal</OutputPath>
 8      <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
 9      <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
10      <!-- MRT from windows app sdk will search for a pri file with the same name of the module before defaulting to resources.pri -->
11      <ProjectPriFileName>Microsoft.CmdPal.Ext.Calc.pri</ProjectPriFileName>
12    </PropertyGroup>
13    <PropertyGroup>
14      <CsWinRTIncludes>CalculatorEngineCommon</CsWinRTIncludes>
15      <CsWinRTGeneratedFilesDir>$(OutDir)</CsWinRTGeneratedFilesDir>
16    </PropertyGroup>
17  
18    <ItemGroup>
19      <ProjectReference Include="..\..\..\..\common\CalculatorEngineCommon\CalculatorEngineCommon.vcxproj" />
20      <ProjectReference Include="..\..\..\..\common\ManagedCommon\ManagedCommon.csproj" />
21      <!-- CmdPal Toolkit reference now included via Common.ExtDependencies.props -->
22    </ItemGroup>
23    <ItemGroup>
24      <CsWinRTInputs Include="..\..\..\..\..\$(Platform)\$(Configuration)\CalculatorEngineCommon.winmd" />
25      <Content Include="..\..\..\..\..\$(Platform)\$(Configuration)\CalculatorEngineCommon.winmd" Link="CalculatorEngineCommon.winmd">
26          <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
27      </Content>
28      <Content Include="..\..\..\..\..\$(Platform)\$(Configuration)\CalculatorEngineCommon.dll">
29          <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
30      </Content>
31    </ItemGroup>
32    <ItemGroup>
33      <Compile Update="Properties\Resources.Designer.cs">
34        <DependentUpon>Resources.resx</DependentUpon>
35        <DesignTime>True</DesignTime>
36        <AutoGen>True</AutoGen>
37      </Compile>
38    </ItemGroup>
39  
40    <ItemGroup>
41      <None Remove="Assets\Calculator.svg" />
42    </ItemGroup>
43    <ItemGroup>
44      <Content Update="Assets\Calculator.png">
45        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
46      </Content>
47      <Content Update="Assets\Calculator.svg">
48        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
49      </Content>
50    </ItemGroup>
51    <ItemGroup>
52      <EmbeddedResource Update="Properties\Resources.resx">
53        <LastGenOutput>Resources.Designer.cs</LastGenOutput>
54        <Generator>PublicResXFileCodeGenerator</Generator>
55      </EmbeddedResource>
56    </ItemGroup>
57  
58  </Project>