Class: Makit::DotNet
- Inherits:
-
Object
show all
- Defined in:
- lib/makit/dotnet.rb,
lib/makit/dotnet/cli.rb,
lib/makit/dotnet/project.rb,
lib/makit/dotnet/solution.rb,
lib/makit/dotnet/solution_wpf.rb,
lib/makit/dotnet/solution_maui.rb,
lib/makit/dotnet/solution_wasm.rb,
lib/makit/dotnet/solution_console.rb,
lib/makit/dotnet/solution_classlib.rb
Overview
Main interface for .NET operations, providing a unified API for project management, solution handling, and CLI operations.
This class serves as a backward-compatible facade that delegates to the organized DotNet::Project, DotNet::Solution, and DotNet::CLI classes while maintaining the existing public API.
Defined Under Namespace
Classes: CLI, Project, Solution, SolutionClassLib, SolutionConsole, SolutionMaui, SolutionType, SolutionWasm, SolutionWpf
Class Method Summary
collapse
-
.add_package(project_path, package_name) ⇒ Object
-
.add_packages(project_path, packages) ⇒ Object
-
.add_reference(project_path, reference_path) ⇒ Object
-
.add_references(project_path, references) ⇒ Object
-
.build(project_path, configuration = "Release", output = "artifacts") ⇒ Object
-
.find_project(project_hint) ⇒ Object
-
.format_project(project_path) ⇒ Object
-
.generate_docs ⇒ Object
-
.installed? ⇒ Boolean
-
.is_installed? ⇒ Boolean
Backward compatibility - deprecated method name.
-
.new_project(template, name, output, args = "") ⇒ Object
-
.new_solution(name) ⇒ Object
-
.project_short_name(project_path) ⇒ Object
-
.publish(project_path, configuration = "Release", output = "artifacts") ⇒ Object
-
.set_project_target_framework(project_hint, target_framework) ⇒ Object
-
.sln_add_projects(sln_name) ⇒ Object
-
.test(project_path, configuration = "Release", output = "artifacts") ⇒ Object
-
.upgrade_project(project_path) ⇒ Object
-
.version ⇒ Object
Class Method Details
.add_package(project_path, package_name) ⇒ Object
53
54
55
|
# File 'lib/makit/dotnet.rb', line 53
def self.add_package(project_path, package_name)
Project.add_package(project_path, package_name)
end
|
.add_packages(project_path, packages) ⇒ Object
57
58
59
|
# File 'lib/makit/dotnet.rb', line 57
def self.add_packages(project_path, packages)
Project.add_packages(project_path, packages)
end
|
.add_reference(project_path, reference_path) ⇒ Object
61
62
63
|
# File 'lib/makit/dotnet.rb', line 61
def self.add_reference(project_path, reference_path)
Project.add_reference(project_path, reference_path)
end
|
.add_references(project_path, references) ⇒ Object
65
66
67
|
# File 'lib/makit/dotnet.rb', line 65
def self.add_references(project_path, references)
Project.add_references(project_path, references)
end
|
.build(project_path, configuration = "Release", output = "artifacts") ⇒ Object
69
70
71
|
# File 'lib/makit/dotnet.rb', line 69
def self.build(project_path, configuration = "Release", output = "artifacts")
Project.build(project_path, configuration, output)
end
|
.find_project(project_hint) ⇒ Object
49
50
51
|
# File 'lib/makit/dotnet.rb', line 49
def self.find_project(project_hint)
Project.find_project(project_hint)
end
|
81
82
83
|
# File 'lib/makit/dotnet.rb', line 81
def self.format_project(project_path)
Project.format_project(project_path)
end
|
.generate_docs ⇒ Object
98
99
100
|
# File 'lib/makit/dotnet.rb', line 98
def self.generate_docs
CLI.generate_docs
end
|
.installed? ⇒ Boolean
24
25
26
|
# File 'lib/makit/dotnet.rb', line 24
def self.installed?
Project.installed?
end
|
.is_installed? ⇒ Boolean
Backward compatibility - deprecated method name
29
30
31
|
# File 'lib/makit/dotnet.rb', line 29
def self.is_installed?
installed?
end
|
.new_project(template, name, output, args = "") ⇒ Object
41
42
43
|
# File 'lib/makit/dotnet.rb', line 41
def self.new_project(template, name, output, args = "")
Project.new_project(template, name, output, args)
end
|
.new_solution(name) ⇒ Object
90
91
92
|
# File 'lib/makit/dotnet.rb', line 90
def self.new_solution(name)
CLI.new_solution(name)
end
|
.project_short_name(project_path) ⇒ Object
37
38
39
|
# File 'lib/makit/dotnet.rb', line 37
def self.project_short_name(project_path)
Project.project_short_name(project_path)
end
|
.publish(project_path, configuration = "Release", output = "artifacts") ⇒ Object
73
74
75
|
# File 'lib/makit/dotnet.rb', line 73
def self.publish(project_path, configuration = "Release", output = "artifacts")
Project.publish(project_path, configuration, output)
end
|
.set_project_target_framework(project_hint, target_framework) ⇒ Object
45
46
47
|
# File 'lib/makit/dotnet.rb', line 45
def self.set_project_target_framework(project_hint, target_framework)
Project.set_project_target_framework(project_hint, target_framework)
end
|
.sln_add_projects(sln_name) ⇒ Object
94
95
96
|
# File 'lib/makit/dotnet.rb', line 94
def self.sln_add_projects(sln_name)
CLI.sln_add_projects(sln_name)
end
|
.test(project_path, configuration = "Release", output = "artifacts") ⇒ Object
77
78
79
|
# File 'lib/makit/dotnet.rb', line 77
def self.test(project_path, configuration = "Release", output = "artifacts")
Project.test(project_path, configuration, output)
end
|
.upgrade_project(project_path) ⇒ Object
85
86
87
|
# File 'lib/makit/dotnet.rb', line 85
def self.upgrade_project(project_path)
Project.upgrade_project(project_path)
end
|
.version ⇒ Object
33
34
35
|
# File 'lib/makit/dotnet.rb', line 33
def self.version
Project.version
end
|