Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Update Connect WPF Sample? #3724

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

michael-hawker
Copy link
Contributor

Requires #3723 and dependent probably on #3720

This is an initial start for updating the Connect WPF sample:

  • Add to the main solution and allow building it there alongside the rest of the code (use a dummy props file to prevent the arcade issue) Fixes Connect-wpf sample app not running because cannot find Microsoft.DotNet.Arcade.Sdk #2582
  • Use ProjectReference to build against the project (at least for now while working on this)
  • Updates code to use the new NuGetDirective pattern (grabbed code from the extension in the browser project, not sure why that extension isn't just part of the core library)
  • Updates code to use the refactored out NamedPipeConnector project
  • Updates to use new KernalActionDirective pattern (seems likes some refactor/change happened to avoid conflicts with cmdline parsing, but this project was never updated)
  • Temp? Add packages needed to the notebook for testing

That's as far as I could get, it seems to connect to the WPF app (maybe) and then stalls out? The connect command just continues to 'run' and ignores the request to stop in the notebook from VS Code (with no output/status).

image

I'm out-of-my-depth now trying to just update the code as best as I can with the internals of how .NET Interactive works, but figured putting an update together to share what I had as a starting point for others to jump on would be useful.

Thanks!

@@ -123,6 +123,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DotNet.Interactiv
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DotNet.Interactive.Parsing.Tests", "src\Microsoft.DotNet.Interactive.Parsing.Tests\Microsoft.DotNet.Interactive.Parsing.Tests.csproj", "{55138BD7-111A-43A5-BFBB-326606C4C1B5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{49E6C2EA-FE81-47DF-B206-F818669BEFB1}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've been keeping samples out of the solution. Ideally the samples build against NuGet packages, since most people using them won't be building this code.

@@ -8,7 +8,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.DotNet.Interactive.CSharp" Version="1.0.0-beta.23403.1" />
<ProjectReference Include="..\..\src\Microsoft.DotNet.Interactive.CSharp\Microsoft.DotNet.Interactive.CSharp.csproj" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be package references and not project references.

@@ -59,6 +59,9 @@
}
],
"source": [
"#i \"nuget:I:\\oss\\dotnetinteractive\\artifacts\\packages\\Debug\\Shipping\"\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Referencing a hard-coded path won't work for most people, and we don't want to expect people to build the solution in any case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connect-wpf sample app not running because cannot find Microsoft.DotNet.Arcade.Sdk
2 participants