diff --git a/examples/Directory.Packages.props b/examples/Directory.Packages.props new file mode 100644 index 00000000..6f11db56 --- /dev/null +++ b/examples/Directory.Packages.props @@ -0,0 +1,6 @@ + + + + false + + diff --git a/examples/aot-module/aot-module.csproj b/examples/aot-module/aot-module.csproj index 1696f607..07b7edc5 100644 --- a/examples/aot-module/aot-module.csproj +++ b/examples/aot-module/aot-module.csproj @@ -2,7 +2,6 @@ net8.0 - false true true true diff --git a/examples/aot-npm-package/lib/aot-npm-package.csproj b/examples/aot-npm-package/lib/aot-npm-package.csproj index f59f0f61..31b7acd3 100644 --- a/examples/aot-npm-package/lib/aot-npm-package.csproj +++ b/examples/aot-npm-package/lib/aot-npm-package.csproj @@ -2,13 +2,21 @@ net8.0 - false + + true + + true true - bin + bin + true + + + true - pkg + pkg diff --git a/examples/dotnet-module/dotnet-module.csproj b/examples/dotnet-module/dotnet-module.csproj index 8d4f9601..c5af873b 100644 --- a/examples/dotnet-module/dotnet-module.csproj +++ b/examples/dotnet-module/dotnet-module.csproj @@ -2,7 +2,6 @@ net472 - false true bin 10 diff --git a/examples/hermes-engine/hermes-engine.csproj b/examples/hermes-engine/hermes-engine.csproj index 66766db7..08f53e25 100644 --- a/examples/hermes-engine/hermes-engine.csproj +++ b/examples/hermes-engine/hermes-engine.csproj @@ -3,7 +3,6 @@ Exe net8.0 - false enable enable Hermes.Example diff --git a/examples/semantic-kernel/semantic-kernel.csproj b/examples/semantic-kernel/semantic-kernel.csproj index ddcd400b..773c4b23 100644 --- a/examples/semantic-kernel/semantic-kernel.csproj +++ b/examples/semantic-kernel/semantic-kernel.csproj @@ -2,7 +2,6 @@ net6.0 - false $(MSBuildThisFileDirectory)/pkg bin esm diff --git a/examples/winui-fluid/winui-fluid.csproj b/examples/winui-fluid/winui-fluid.csproj index bb929d69..daa2f29b 100644 --- a/examples/winui-fluid/winui-fluid.csproj +++ b/examples/winui-fluid/winui-fluid.csproj @@ -4,7 +4,6 @@ net8.0-windows10.0.22000.0 10.0.22000.0 WinExe - false true diff --git a/examples/wpf/WpfExample.csproj b/examples/wpf/WpfExample.csproj index 675bdddf..89b991a5 100644 --- a/examples/wpf/WpfExample.csproj +++ b/examples/wpf/WpfExample.csproj @@ -2,7 +2,6 @@ net6.0-windows - false $(MSBuildThisFileDirectory)/pkg bin esm diff --git a/src/NodeApi/NodeApi.targets b/src/NodeApi/NodeApi.targets index c4c39425..cb5f8aa7 100644 --- a/src/NodeApi/NodeApi.targets +++ b/src/NodeApi/NodeApi.targets @@ -4,23 +4,27 @@ BeforeTargets="PublishManagedAssembly" Condition=" '$(PublishNodeModule)' == 'true' " > - - - - + + + $(PublishDir) + $(PublishDir)$(RuntimeIdentifier)/ + + + + DestinationFiles="$(PublishNodeModuleDir)$(TargetName).node" /> + DestinationFiles="$(PublishNodeModuleDir)$(TargetName).node.pdb" /> + DestinationFiles="$(PublishNodeModuleDir)$(TargetName).node.dbg" /> - - +