@@ -67,16 +67,21 @@ readonly void ICommand.Execute(Runner runner, Arguments arguments)
6767 private static bool EnsureBuildOutputsArePacked ( Project project )
6868 {
6969 bool changed = false ;
70- string projectName = project . Name . ToString ( ) ;
71- string debugDllPath = $ "bin/Debug/net9.0/{ projectName } .dll";
72- string releaseDllPath = $ "bin/Release/net9.0/{ projectName } .dll";
73- string debugXmlPath = $ "bin/Debug/net9.0/{ projectName } .xml";
74- string releaseXmlPath = $ "bin/Release/net9.0/{ projectName } .xml";
75- string targetsPath = $ "build/{ projectName } .targets";
76- string packageDebugDllPath = $ "tools/debug/{ projectName } .dll";
77- string packageReleaseDllPath = $ "tools/release/{ projectName } .dll";
78- string packageDebugXmlPath = $ "tools/debug/{ projectName } .xml";
79- string packageReleaseXmlPath = $ "tools/release/{ projectName } .xml";
70+ string packageId = project . PackageId . ToString ( ) ;
71+ if ( string . IsNullOrEmpty ( packageId ) )
72+ {
73+ packageId = project . Name . ToString ( ) ;
74+ }
75+
76+ string debugDllPath = $ "bin/Debug/net9.0/{ packageId } .dll";
77+ string releaseDllPath = $ "bin/Release/net9.0/{ packageId } .dll";
78+ string debugXmlPath = $ "bin/Debug/net9.0/{ packageId } .xml";
79+ string releaseXmlPath = $ "bin/Release/net9.0/{ packageId } .xml";
80+ string targetsPath = $ "build/{ packageId } .targets";
81+ string packageDebugDllPath = $ "tools/debug/{ packageId } .dll";
82+ string packageReleaseDllPath = $ "tools/release/{ packageId } .dll";
83+ string packageDebugXmlPath = $ "tools/debug/{ packageId } .xml";
84+ string packageReleaseXmlPath = $ "tools/release/{ packageId } .xml";
8085 string debugXmlCondition = $ "Exists('{ debugXmlPath } ')";
8186 string releaseXmlCondition = $ "Exists('{ releaseXmlPath } ')";
8287 XMLNode debugDllPackNode = default ;
0 commit comments