Skip to content

Commit

Permalink
Angzhang/flattensample (#453)
Browse files Browse the repository at this point in the history
* flatten sample directory

* flatten directory structure

* update readme

* update commands
  • Loading branch information
angelazhangmsft authored Oct 6, 2020
1 parent b8b2ea7 commit 73299a3
Show file tree
Hide file tree
Showing 17 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30509.190
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConsoleAppSample", "ProjectionSampleConsoleApp\ConsoleAppSample.csproj", "{9623756E-90CE-449C-8BD8-36A2F8419DBF}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConsoleAppSample", "ConsoleAppSample\ConsoleAppSample.csproj", "{9623756E-90CE-449C-8BD8-36A2F8419DBF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
6 changes: 3 additions & 3 deletions Samples/Net5ProjectionSample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ This sample demonstrates how to invoke C#/WinRT to build a .NET5 projection for

Using Visual Studio:

1. Build the *CppWinRTProjectionSample* solution first. This generates the projection and interop assembly using cswinrt, and creates *SimpleMathComponent.nupkg* which can be referenced in consuming apps. If you run into errors restoring NuGet packages, look at the docs on [NuGet restore options](https://docs.microsoft.com/nuget/consume-packages/package-restore). You may need to configure your NuGet package manager settings to allow for package restores on build.
1. Build the *CppWinRTComponentProjectionSample* solution first. This generates the projection and interop assembly using cswinrt, and creates *SimpleMathComponent.nupkg* which can be referenced in consuming apps. If you run into errors restoring NuGet packages, look at the docs on [NuGet restore options](https://docs.microsoft.com/nuget/consume-packages/package-restore). You may need to configure your NuGet package manager settings to allow for package restores on build.

2. Build the *ConsoleAppSample* solution which references and restores *SimpleMathComponent.nupkg* to consume the projection.

For building with the command line, execute the following:

```cmd
nuget restore
msbuild /p:platform=x64;configuration=debug CppWinRTProjectionSample\CppWinRTComponentProjectionSample.sln
msbuild /p:platform=x64;configuration=debug ConsoleAppSample\ConsoleAppSample.sln
msbuild /p:platform=x64;configuration=debug CppWinRTComponentProjectionSample.sln
msbuild /p:platform=x64;configuration=debug ConsoleAppSample.sln
```

0 comments on commit 73299a3

Please sign in to comment.