3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# File 'lib/raykit/auto_setup.rb', line 3
def self.run
PROJECT.set_version(VERSION) if (defined?(VERSION))
DEFAULT_SUBDIRECTORIES.each do |subdirectory|
puts " RAYKIT_AUTO_SETUP: creating #{subdirectory}" unless Dir.exist?(subdirectory)
FileUtils.mkdir_p(subdirectory) unless Dir.exist?(subdirectory)
end
puts " RAYKIT_AUTO_SETUP: creating .gitignore" unless File.exist?(".gitignore")
File.write(".gitignore", DEFAULT_GITIGNORE_CONTENT) unless File.exist?(".gitignore")
if (defined?(RAYKIT_CSHARP_PROJECTS))
RAYKIT_CSHARP_PROJECTS.each do |project|
Raykit::DotNet::initialize_csharp_project project[0], project[1], project[2], project[3]
end
end
if (defined?(RAYKIT_CSHARPCLASSLIBS))
RAYKIT_CSHARPCLASSLIBS.each do |csharpclasslib|
Raykit::DotNet::initialize_csharp_razorclasslib csharpclasslib
end
end
if (defined?(RAYKIT_RAZORCLASSLIBS))
RAYKIT_RAZORCLASSLIBS.each do |razorclasslib|
Raykit::DotNet::initialize_csharp_razorclasslib razorclasslib
end
end
if (defined?(RAYKIT_BLAZORSERVERAPPS))
RAYKIT_BLAZORSERVERAPPS.each do |app|
Raykit::DotNet::initialize_csharp_blazorserver app
end
end
if (defined?(RAYKIT_BLAZORSERVER_EXAMPLE_APPS))
RAYKIT_BLAZORSERVER_EXAMPLE_APPS.each do |app|
Raykit::DotNet::initialize_csharp_blazorserver_example app
end
end
if (defined?(RAYKIT_WPF_EXAMPLE_APPS))
RAYKIT_WPF_EXAMPLE_APPS.each do |app|
Raykit::DotNet::initialize_csharp_wpf_example app
end
end
project_count = Dir.glob("**/*.csproj").length
Raykit::DotNet::create_solution(PROJECT.name) if (project_count > 0)
end
|