OpenSource » SampleCode » Brail2Razor
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

tip Targeting 4.7.2 now

Changeset e4d9ec127cb8

Parent dd227daa1d04

by Profile picture of Daniel PupekDaniel Pupek

Changes to 3 files · Browse files at e4d9ec127cb8 Showing diff from parent dd227daa1d04 Diff from another changeset...

 
1
 
2
3
4
 
5
6
 
 
 
 
1
2
3
 
4
5
 
 
6
@@ -1,6 +1,6 @@
-<?xml version="1.0" encoding="utf-8" ?> +<?xml version="1.0" encoding="utf-8"?>  <configuration>   <startup> - <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>   </startup> -</configuration> \ No newline at end of file
+</configuration>
 
9
10
11
12
 
13
 
14
15
16
 
9
10
11
 
12
13
14
15
16
17
@@ -9,8 +9,9 @@
  <AppDesignerFolder>Properties</AppDesignerFolder>   <RootNamespace>Brail2Razor</RootNamespace>   <AssemblyName>Brail2Razor</AssemblyName> - <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> + <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>   <FileAlignment>512</FileAlignment> + <TargetFrameworkProfile />   </PropertyGroup>   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">   <PlatformTarget>AnyCPU</PlatformTarget>
 
6
7
8
 
9
10
11
 
168
169
170
171
 
172
173
174
 
193
194
195
196
 
 
 
 
 
197
198
199
 
203
204
205
206
207
208
209
 
210
211
212
 
6
7
8
9
10
11
12
 
169
170
171
 
172
173
174
175
 
194
195
196
 
197
198
199
200
201
202
203
204
 
208
209
210
 
 
 
 
211
212
213
214
@@ -6,6 +6,7 @@
 using System.Text.RegularExpressions;  using System.Threading.Tasks;  using Fclp; +using Fclp.Internals;    namespace Brail2Razor  { @@ -168,7 +169,7 @@
  {   var p = new FluentCommandLineParser();   - p.SetupHelp("?", "help") + p.SetupHelp("?", "help").UseForEmptyArgs().WithHeader("Brail to Razor converter for NexPort Campus specific Brail views.")   .Callback(text => Console.WriteLine(text));     p.Setup<string>('d', "directory") @@ -193,7 +194,11 @@
      var result = p.Parse(args); - + if (result.HelpCalled) + { + return; + } +   if (result.HasErrors || (!File.Exists(_singleFile) && !Directory.Exists(_directory)))   {   Console.WriteLine(result.ErrorText); @@ -203,10 +208,7 @@
    return;   } - if (result.HelpCalled) - { - return; - } +     Console.WriteLine("Starting brail to razor conversion of directory {0}", _directory);   string[] files;