@@ -134,7 +134,9 @@ endif
134
134
$(TEMP_DOTNET_DIR ) $S$1$S$$* $S$$* .csproj
135
135
$(SED ) -i -e 's/@PROJECT_VERSION_PATCH@/$(OR_TOOLS_PATCH ) /' \
136
136
$(TEMP_DOTNET_DIR ) $S$1$S$$* $S$$* .csproj
137
- $(SED ) -i -e 's/@FILE_NAME@/$$* .cs/' \
137
+ $(SED ) -i -e 's/@COMPONENT_NAME@/$1/' \
138
+ $(TEMP_DOTNET_DIR ) $S$1$S$$* $S$$* .csproj
139
+ $(SED ) -i -e 's/@SAMPLE_FILE_NAME@/$$* .cs/' \
138
140
$(TEMP_DOTNET_DIR ) $S$1$S$$* $S$$* .csproj
139
141
140
142
$(TEMP_DOTNET_DIR ) /$1/%/%.cs: \
@@ -175,10 +177,10 @@ $(TEMP_DOTNET_DIR)/$1/%: \
175
177
176
178
$(TEMP_DOTNET_DIR ) /$1/%/%.csproj: \
177
179
$(SRC_DIR ) /examples/$1/%.cs \
178
- ${SRC_DIR}/ortools/dotnet/Sample .csproj.in \
180
+ ${SRC_DIR}/ortools/dotnet/Example .csproj.in \
179
181
| $(TEMP_DOTNET_DIR ) /$1/%
180
182
$(SED ) -e "s/@DOTNET_PACKAGES_DIR@/..\/..\/..\/$(BUILD_DIR ) \/dotnet\/packages/" \
181
- ortools$Sdotnet$SSample .csproj.in \
183
+ ortools$Sdotnet$SExample .csproj.in \
182
184
> $(TEMP_DOTNET_DIR ) $S$1$S$$* $S$$* .csproj
183
185
$(SED ) -i -e 's/@DOTNET_SAMPLE_LANG@/9.0/' \
184
186
$(TEMP_DOTNET_DIR ) $S$1$S$$* $S$$* .csproj
196
198
endif
197
199
$(SED ) -i -e 's/@DOTNET_PROJECT@/$(DOTNET_ORTOOLS_ASSEMBLY_NAME ) /' \
198
200
$(TEMP_DOTNET_DIR ) $S$1$S$$* $S$$* .csproj
199
- $(SED ) -i -e 's/@SAMPLE_NAME @/$$* /' \
201
+ $(SED ) -i -e 's/@EXAMPLE_NAME @/$$* /' \
200
202
$(TEMP_DOTNET_DIR ) $S$1$S$$* $S$$* .csproj
201
203
$(SED ) -i -e 's/@PROJECT_VERSION@/$(OR_TOOLS_VERSION ) /' \
202
204
$(TEMP_DOTNET_DIR ) $S$1$S$$* $S$$* .csproj
@@ -206,7 +208,9 @@ endif
206
208
$(TEMP_DOTNET_DIR ) $S$1$S$$* $S$$* .csproj
207
209
$(SED ) -i -e 's/@PROJECT_VERSION_PATCH@/$(OR_TOOLS_PATCH ) /' \
208
210
$(TEMP_DOTNET_DIR ) $S$1$S$$* $S$$* .csproj
209
- $(SED ) -i -e 's/@FILE_NAME@/$$* .cs/' \
211
+ $(SED ) -i -e 's/@COMPONENT_NAME@/$1/' \
212
+ $(TEMP_DOTNET_DIR ) $S$1$S$$* $S$$* .csproj
213
+ $(SED ) -i -e 's/@EXAMPLE_FILE_NAME@/$$* .cs/' \
210
214
$(TEMP_DOTNET_DIR ) $S$1$S$$* $S$$* .csproj
211
215
212
216
$(TEMP_DOTNET_DIR ) /$1/%/%.cs: \
@@ -658,10 +662,12 @@ $(TEMP_DOTNET_DIR)/ortools_examples/examples/dotnet/%.csproj: \
658
662
$(SED ) -i -e 's/@DOTNET_TFM@/<TargetFrameworks>netcoreapp3.1;net6.0<\/TargetFrameworks>/' \
659
663
$(TEMP_DOTNET_DIR ) $Sortools_examples$Sexamples$Sdotnet$S$$* .csproj
660
664
$(SED ) -i -e 's/@DOTNET_PROJECT@/$(DOTNET_ORTOOLS_ASSEMBLY_NAME ) /' \
665
+ $(TEMP_DOTNET_DIR ) $Sortools_examples$Sexamples$Sdotnet$S$$* .csproj
666
+ $(SED ) -i -e 's/@COMPONENT_NAME@/$1/' \
661
667
$(TEMP_DOTNET_DIR ) $Sortools_examples$Sexamples$Sdotnet$S$$* .csproj
662
668
$(SED ) -i -e 's/@SAMPLE_NAME@/$$* /' \
663
669
$(TEMP_DOTNET_DIR ) $Sortools_examples$Sexamples$Sdotnet$S$$* .csproj
664
- $(SED ) -i -e 's/@FILE_NAME @/$$* .cs/' \
670
+ $(SED ) -i -e 's/@SAMPLE_FILE_NAME @/$$* .cs/' \
665
671
$(TEMP_DOTNET_DIR ) $Sortools_examples$Sexamples$Sdotnet$S$$* .csproj
666
672
endef
667
673
@@ -674,7 +680,7 @@ $(TEMP_DOTNET_DIR)/ortools_examples/examples/dotnet/%.csproj: \
674
680
| $(TEMP_DOTNET_DIR ) /ortools_examples/examples/dotnet
675
681
$(COPY ) $(SRC_DIR ) $Sexamples$S$1$S$$* .cs \
676
682
$(TEMP_DOTNET_DIR ) $Sortools_examples$Sexamples$Sdotnet
677
- $(COPY ) ortools$Sdotnet$SSample .csproj.in \
683
+ $(COPY ) ortools$Sdotnet$SExample .csproj.in \
678
684
$(TEMP_DOTNET_DIR ) $Sortools_examples$Sexamples$Sdotnet$S$$* .csproj
679
685
$(SED ) -i -e 's/@PROJECT_VERSION@/$(OR_TOOLS_VERSION ) /' \
680
686
$(TEMP_DOTNET_DIR ) $Sortools_examples$Sexamples$Sdotnet$S$$* .csproj
@@ -692,9 +698,11 @@ $(TEMP_DOTNET_DIR)/ortools_examples/examples/dotnet/%.csproj: \
692
698
$(TEMP_DOTNET_DIR ) $Sortools_examples$Sexamples$Sdotnet$S$$* .csproj
693
699
$(SED ) -i -e 's/@DOTNET_PROJECT@/$(DOTNET_ORTOOLS_ASSEMBLY_NAME ) /' \
694
700
$(TEMP_DOTNET_DIR ) $Sortools_examples$Sexamples$Sdotnet$S$$* .csproj
695
- $(SED ) -i -e 's/@SAMPLE_NAME @/$$* /' \
701
+ $(SED ) -i -e 's/@COMPONENT_NAME @/$1 /' \
696
702
$(TEMP_DOTNET_DIR ) $Sortools_examples$Sexamples$Sdotnet$S$$* .csproj
697
- $(SED ) -i -e 's/@FILE_NAME@/$$* .cs/' \
703
+ $(SED ) -i -e 's/@EXAMPLE_NAME@/$$* /' \
704
+ $(TEMP_DOTNET_DIR ) $Sortools_examples$Sexamples$Sdotnet$S$$* .csproj
705
+ $(SED ) -i -e 's/@EXAMPLE_FILE_NAME@/$$* .cs/' \
698
706
$(TEMP_DOTNET_DIR ) $Sortools_examples$Sexamples$Sdotnet$S$$* .csproj
699
707
endef
700
708
0 commit comments