History

Moved the DNP3ConfigGenerator project into the Tools directory and fixed its build location.

StephenCWills committed 12 years ago

Commit e6c82fa1 parent 19bec535 files · +14 −11Browse files

Showing the changes to Source/Tools/DNP3ConfigGenerator/Program.cs (1 of 5 files). Show all

Unified · Split

Source/Tools/DNP3ConfigGenerator/Program.cs+31−0
@@ -0,0 +1,31 @@
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
7using System.IO;
8using System.Xml.Serialization;
9
10using DNP3Adapters;
11
12namespace DNP3ConfigGenerator
13{
14 class Program
15 {
16 static void Main(string[] args)
17 {
18 var ser = new XmlSerializer(typeof(MasterConfiguration));
19 var stream = new StreamWriter("device.xml");
20 try
21 {
22 var config = new MasterConfiguration();
23 ser.Serialize(stream, config);
24 }
25 finally
26 {
27 stream.Close();
28 }
29 }
30 }
31}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t