| 754 | } |
| 755 | |
| 756 | void ScriptingEngineNet::CopyNuakeNETAssemblies(const std::string& path) |
| 757 | { |
| 758 | // Create .Net directory in projects folder. |
| 759 | const auto netDirectionPath = "/"; |
| 760 | const auto netDir = path + netDirectionPath; |
| 761 | if (!FileSystem::DirectoryExists(netDirectionPath)) |
| 762 | { |
| 763 | FileSystem::MakeDirectory(netDirectionPath); |
| 764 | } |
| 765 | |
| 766 | // Copy engine assembly to projects folder. |
| 767 | const std::vector<std::string> dllToCopy = |
| 768 | { |
| 769 | m_EngineAssemblyName |
| 770 | }; |
| 771 | |
| 772 | for (const auto& fileToCopy : dllToCopy) |
| 773 | { |
| 774 | std::filesystem::copy_file(fileToCopy, netDir + fileToCopy, std::filesystem::copy_options::overwrite_existing); |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | void ScriptingEngineNet::GenerateSolution(const std::string& path, const std::string& projectName) |
| 779 | { |