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

Bump to mono/LineEditor/v5.4.1@3fa0c2eb #740

Merged
merged 1 commit into from
Oct 20, 2020

Conversation

jonpryor
Copy link
Member

Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1230070

Changes: mono/LineEditor@5a7e3e2...3fa0c2e

The most important piece is mono/LineEditor@bce1b7f, which will allow
us to redistribute LineEditor.pdb in the Xamarin.Android installers.

@jonpryor jonpryor changed the title Bump to mono/LineEditor/v5.4.1@06a4ddfd Bump to mono/LineEditor/v5.4.1@3fa0c2eb Oct 19, 2020
jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Oct 19, 2020
jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Oct 19, 2020
@jonpryor
Copy link
Member Author

DO NOT MERGE until this PR is acceptable: dotnet/android#5224

@jonpryor
Copy link
Member Author

@dellis1972 , @jonathanpeppers : what is the proper way to use %(PackageReference.GeneratePathProperty)? It doesn't appear to be set when I need it to be set here:

diff --git a/tools/logcat-parse/logcat-parse.csproj b/tools/logcat-parse/logcat-parse.csproj
index a7d4e1c3..7fb258e2 100644
--- a/tools/logcat-parse/logcat-parse.csproj
+++ b/tools/logcat-parse/logcat-parse.csproj
@@ -11,7 +11,7 @@
 
   <ItemGroup>
     <PackageReference Include="Mono.Options" Version="5.3.0.1" />
-    <PackageReference Include="Mono.Terminal" Version="5.4.1" />
+    <PackageReference Include="Mono.Terminal" Version="5.4.1" GeneratePathProperty="True" />
     <PackageReference Include="Mono.CSharp" Version="4.0.0.143" NoWarn="NU1701" />
     <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.0" />
   </ItemGroup>
@@ -22,4 +22,21 @@
     <ProjectReference Include="..\..\src\Java.Interop.Tools.Diagnostics\Java.Interop.Tools.Diagnostics.csproj" />
   </ItemGroup>
 
+  <ItemGroup>
+    <_ExtraPackageSource Include="$(PkgMono_Terminal)\lib\netstandard2.0\LineEditor.pdb" />
+    <_ExtraPackageTarget Include="$(OutputPath)\LineEditor.pdb" />
+  </ItemGroup>
+
+  <!-- Copy package ref symbols for our installers. '$(Pkg*)' props are set during NuGet restore when GeneratePathProperty="true" -->
+  <Target Name="_CopyExtraPackageContent"
+      AfterTargets="Build"
+      Inputs="$(PkgMono_Terminal)\lib\netstandard2.0\LineEditor.pdb"
+      Outputs="$(OutputPath)\LineEditor.pdb" >
+    <Copy
+        SourceFiles="@(_ExtraPackageSource)"
+        DestinationFolder="$(OutputPath)"
+        SkipUnchangedFiles="True"
+    />
+  </Target>
+
 </Project>

jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Oct 20, 2020
Comment on lines 6 to 7
Inputs="$(PkgMono_Terminal)\lib\netstandard2.0\LineEditor.pdb"
Outputs="$(OutputPath)\LineEditor.pdb" >
Copy link
Member

Choose a reason for hiding this comment

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

I think for these Inputs / Outputs to work, you would need a <Touch/>. The destination file will have the same last write time as the source file when using <Copy/>.

Since you are also using SkipUnchangedFiles="true", another option is to just remove the Inputs / Outputs because you probably don't need both.

Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1230070

Changes: mono/LineEditor@5a7e3e2...3fa0c2e

  * mono/LineEditor@3fa0c2e: Fix NuGet publishing errors (dotnet#9)
  * mono/LineEditor@06a4ddf: Bump `$(PackageVersion)` to 5.4.1.
  * mono/LineEditor@bce1b7f: Enable .pdb files for Release config & add AzDO build script (dotnet#8)
  * mono/LineEditor@4831e1a: Merge pull request dotnet#6 from terrajobst/code-of-conduct
  * mono/LineEditor@5b4a4aa: Link Code of Conduct
  * mono/LineEditor@410ca3d: Merge pull request dotnet#2 from VEIT-Electronics/master
  * mono/LineEditor@3d802e7: Merge pull request dotnet#1 from VEIT-Electronics/bugfix/ENG-232-line-editor-completions
  * mono/LineEditor@0d43552: fix: text overriding was only platform specific (check platform)

The most important piece is mono/LineEditor@bce1b7f, which will allow
us to redistribute `LineEditor.pdb` in the Xamarin.Android installers.

Add a post-`Build` target to `logcat-parse/Directory.Build.targets`
which copies `LineEditor.pdb` into `$(OutputPath)`.  This will allow
the Xamarin.Android installer to include `LineEditor.pdb` into the
installer packages.
@jonpryor jonpryor merged commit da74abd into dotnet:master Oct 20, 2020
@jpobst jpobst added this to the 11.1 (16.9 / 8.9) milestone Nov 5, 2020
pjcollins pushed a commit to pjcollins/java.interop that referenced this pull request Dec 17, 2020
Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1230070

Changes: mono/LineEditor@5a7e3e2...3fa0c2e

  * mono/LineEditor@3fa0c2e: Fix NuGet publishing errors (dotnet#9)
  * mono/LineEditor@06a4ddf: Bump `$(PackageVersion)` to 5.4.1.
  * mono/LineEditor@bce1b7f: Enable .pdb files for Release config & add AzDO build script (dotnet#8)
  * mono/LineEditor@4831e1a: Merge pull request dotnet#6 from terrajobst/code-of-conduct
  * mono/LineEditor@5b4a4aa: Link Code of Conduct
  * mono/LineEditor@410ca3d: Merge pull request dotnet#2 from VEIT-Electronics/master
  * mono/LineEditor@3d802e7: Merge pull request dotnet#1 from VEIT-Electronics/bugfix/ENG-232-line-editor-completions
  * mono/LineEditor@0d43552: fix: text overriding was only platform specific (check platform)

The most important piece is mono/LineEditor@bce1b7f, which will allow
us to redistribute `LineEditor.pdb` in the Xamarin.Android installers.

Add a post-`Build` target to `logcat-parse/Directory.Build.targets`
which copies `LineEditor.pdb` into `$(OutputPath)`.  This will allow
the Xamarin.Android installer to include `LineEditor.pdb` into the
installer packages.
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants