22
22
23
23
namespace Sharpmake
24
24
{
25
+ [ Resolver . Resolvable ]
26
+ public class CustomTargetElement
27
+ {
28
+ public string Name = "" ;
29
+ public string TargetParameters = "" ;
30
+ public string CustomTasks = "" ;
31
+ }
32
+
25
33
[ Resolver . Resolvable ]
26
34
public partial class Project : Configurable < Project . Configuration >
27
35
{
@@ -225,6 +233,7 @@ internal void Resolve(string sourceRootPath, Resolver resolver)
225
233
226
234
public Strings CustomPropsFiles = new Strings ( ) ; // vs2010+ .props files
227
235
public Strings CustomTargetsFiles = new Strings ( ) ; // vs2010+ .targets files
236
+ public List < CustomTargetElement > CustomTargets = new List < CustomTargetElement > ( ) ;
228
237
229
238
public Strings LibraryPathsExcludeFromWarningRegex = new Strings ( ) ; // Library paths where we want to ignore the path doesn't exist warning
230
239
public Strings IncludePathsExcludeFromWarningRegex = new Strings ( ) ; // Include paths where we want to ignore the path doesn't exist warning
@@ -2160,7 +2169,7 @@ public static void InitAspNetProject(this CSharpProject aspNetProject)
2160
2169
2161
2170
aspNetProject . NoneExtensions . Add ( ".pubxml" ) ;
2162
2171
2163
- aspNetProject . CustomTargets . Add ( new CSharpProject . CustomTargetElement ( )
2172
+ aspNetProject . CustomTargets . Add ( new CustomTargetElement ( )
2164
2173
{
2165
2174
Name = "MvcBuildViews" ,
2166
2175
TargetParameters = @"AfterTargets=""AfterBuild"" Condition=""'$(MvcBuildViews)' == 'true'""" ,
@@ -2311,7 +2320,6 @@ public class CSharpProject : Project
2311
2320
public List < ComReference > ComReferences = new List < ComReference > ( ) ;
2312
2321
public List < ImportProject > PreImportProjects = new List < ImportProject > ( ) ;
2313
2322
public List < ImportProject > ImportProjects = new List < ImportProject > ( ) ;
2314
- public List < CustomTargetElement > CustomTargets = new List < CustomTargetElement > ( ) ;
2315
2323
public List < UsingTask > UsingTasks = new List < UsingTask > ( ) ;
2316
2324
2317
2325
public bool ? WcfAutoStart ; // Wcf Auto-Start service when debugging
@@ -2337,12 +2345,10 @@ public class CSharpProject : Project
2337
2345
public bool GenerateDocumentationFile = false ;
2338
2346
2339
2347
[ Resolver . Resolvable ]
2340
- public class CustomTargetElement
2341
- {
2342
- public string Name ;
2343
- public string TargetParameters ;
2344
- public string CustomTasks ;
2348
+ [ Obsolete ( "Use Sharpmake.CustomTargetElement instead" ) ]
2345
2349
2350
+ public class CustomTargetElement : Sharpmake . CustomTargetElement
2351
+ {
2346
2352
public CustomTargetElement ( )
2347
2353
{ }
2348
2354
0 commit comments