Visual Studio 2019 无法正确构建 C# 代码

C# code cannot be built properly with Visual Studio 2019

我想在 VS 2019 中构建一个 pre_written C# 代码。代码已构建,但我只有一个 .pdb 文件,而不是一个 .gh 文件(Grasshopper 组件)。请您检查以下文本并告诉我,构建过程中是否存在问题?我该如何解决?

1>------ Build started: Project: Pavillion2015, Configuration: Debug64 Any CPU ------
1>D:\HEXAGONAL\New folder\Pavilion2015_ITECH-master\Pavillion2015\Pavillion\GHC_PointDistributor.cs(207,21,207,57): warning CS0618: 'Curve.Contains(Point3d)' is obsolete: 'Use version that takes a tolerance'
1>D:\HEXAGONAL\New folder\Pavilion2015_ITECH-master\Pavillion2015\Pavillion\GHC_PointsToMesh2.cs(209,29,209,46): warning CS0618: 'Curve.Contains(Point3d)' is obsolete: 'Use version that takes a tolerance'
1>D:\HEXAGONAL\New folder\Pavilion2015_ITECH-master\Pavillion2015\Pavillion\GHC_PointsToMesh.cs(197,29,197,46): warning CS0618: 'Curve.Contains(Point3d)' is obsolete: 'Use version that takes a tolerance'
1>D:\HEXAGONAL\New folder\Pavilion2015_ITECH-master\Pavillion2015\Pavillion\GHC_PointsToMesh.cs(204,25,204,42): warning CS0618: 'Curve.Contains(Point3d)' is obsolete: 'Use version that takes a tolerance'
1>D:\HEXAGONAL\New folder\Pavilion2015_ITECH-master\Pavillion2015\Pavillion\GHC_PointDistributor2.cs(221,21,221,73): warning CS0618: 'Curve.Contains(Point3d, Plane)' is obsolete: 'Use version that takes a tolerance'
1>D:\HEXAGONAL\New folder\Pavilion2015_ITECH-master\Pavillion2015\Pavillion\GHC_MeshRelaxer.cs(47,19,47,28): warning CS0414: The field 'GHC_MeshRelaxer.stopwatch' is assigned but its value is never used
1>D:\HEXAGONAL\New folder\Pavilion2015_ITECH-master\Pavillion2015\Gene-UpdatedCode\GHC_TriLoopDoubleLayer2.cs(33,23,33,36): warning CS0414: The field 'GHC_TriLoopDoubleLayer2.bottomCentres' is assigned but its value is never used
1>D:\HEXAGONAL\New folder\Pavilion2015_ITECH-master\Pavillion2015\Pavillion\GHC_PointDistributor.cs(18,14,18,32): warning CS0414: The field 'GHC_PointDistributor.iAddPointsManually' is assigned but its value is never used
1>D:\HEXAGONAL\New folder\Pavilion2015_ITECH-master\Pavillion2015\Pavillion\GHC_PointDistributor2.cs(18,14,18,32): warning CS0414: The field 'GHC_PointDistributor2.iAddPointsManually' is assigned but its value is never used
1>D:\HEXAGONAL\New folder\Pavilion2015_ITECH-master\Pavillion2015\Gene-UpdatedCode\GHC_TriLoopDoubleLayer2.cs(32,23,32,33): warning CS0414: The field 'GHC_TriLoopDoubleLayer2.topCentres' is assigned but its value is never used
1>  Pavillion2015 -> D:\HEXAGONAL\New folder\Pavilion2015_ITECH-master\Pavillion2015\bin\Pavillion2015.dll
1>  The system cannot find the path specified.
1>          0 file(s) copied.
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========```





双击解决方案资源管理器中的“属性”并导航到“构建事件”

如图所示放入目标文件路径。这将为您提供 Build 文件夹中的 .gha 文件

您发布的消息显示您的构建已完成。可能只是没有设置它。