Skip to content

Commit a5ba518

Browse files
committed
Try to add Mac Support
1 parent 6bdc3cf commit a5ba518

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

Linq2MongoDB.LINQPadDriver/Linq2MongoDB.LINQPadDriver.csproj

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<Title>MongoDB LINQPad driver</Title>
1818
<Description>MongoDB LINQPad driver that allows you to access MongoDB using Linq queries without having to provide custom assembly types</Description>
1919
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
20-
<Version>1.0.2</Version>
20+
<Version>1.0.3-alpha-mac</Version>
2121
<PackageReadmeFile>README.md</PackageReadmeFile>
2222
</PropertyGroup>
2323
<ItemGroup>
@@ -45,8 +45,30 @@
4545
</None>
4646
</ItemGroup>
4747

48+
<PropertyGroup>
49+
<!-- stop default lib/<tfm>/ assembly placement -->
50+
<IncludeBuildOutput>false</IncludeBuildOutput>
51+
</PropertyGroup>
52+
<ItemGroup>
53+
<!-- pack the built driver DLL into lib/net6.0/ -->
54+
<None Include="$(TargetPath)"
55+
Pack="true"
56+
PackagePath="lib\net6.0" />
57+
58+
<!-- optional but usually nice to ship alongside -->
59+
<None Include="$(TargetDir)$(AssemblyName).pdb"
60+
Pack="true"
61+
PackagePath="lib\net6.0"
62+
Condition="Exists('$(TargetDir)$(AssemblyName).pdb')" />
63+
64+
<None Include="$(TargetDir)$(AssemblyName).xml"
65+
Pack="true"
66+
PackagePath="lib\net6.0"
67+
Condition="Exists('$(TargetDir)$(AssemblyName).xml')" />
68+
</ItemGroup>
69+
4870
<!-- This PostBuild action installs the Driver -->
4971
<Target Condition="'$(Configuration)' == 'Debug'" Name="PostBuild1" AfterTargets="PostBuildEvent">
5072
<Exec Command="xcopy /i/y/s &quot;$(TargetDir)*.*&quot; &quot;%25LocalAppData%25\\LINQPad\\Drivers\\DataContext\\NetCore\\$(TargetName)&quot;" />
5173
</Target>
52-
</Project>
74+
</Project>

0 commit comments

Comments
 (0)