preliminarily solve L4.LD_24
This commit is contained in:
parent
5c255814ef
commit
ce45f4135e
25
L4/L4.sln
Normal file
25
L4/L4.sln
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.1.32328.378
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LD_24", "LD_24\LD_24.csproj", "{4B4C2BFE-C41E-4EA1-BC86-979E2CA1D27B}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{4B4C2BFE-C41E-4EA1-BC86-979E2CA1D27B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4B4C2BFE-C41E-4EA1-BC86-979E2CA1D27B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4B4C2BFE-C41E-4EA1-BC86-979E2CA1D27B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4B4C2BFE-C41E-4EA1-BC86-979E2CA1D27B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {311CB727-13E2-47BB-8B1B-0C68CF29441E}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
5
L4/LD_24/App_Data/Actors1.txt
Normal file
5
L4/LD_24/App_Data/Actors1.txt
Normal file
@ -0,0 +1,5 @@
|
||||
Orc
|
||||
Amandatown
|
||||
Mercedes;Warrior;24;18;13;17;Cummings, Lehner and Wilkinson
|
||||
Kelvin;Warrior;5;4;17;11;Waelchi, Kulas and Bruen
|
||||
Domenico;Archer;24;10;3;25;Jacobi Group
|
12
L4/LD_24/App_Data/Actors2.txt
Normal file
12
L4/LD_24/App_Data/Actors2.txt
Normal file
@ -0,0 +1,12 @@
|
||||
Halfling
|
||||
Leifberg
|
||||
Clare;Warrior;17;2;7;23;14;23;19;6
|
||||
Drake;Hunter;10;15;18;3;Will - Yost
|
||||
Mike;Necromancer;18;24;3;11;23;11;22;9
|
||||
Cathryn;Warrior;20;1;14;9;2;22;6;18
|
||||
Tobin;Necromancer;12;14;21;18;Hermann, Cole and Gislason
|
||||
Yasmine;Archer;6;24;3;4;O'Keefe and Sons
|
||||
Shanna;Necromancer;3;5;15;14;Mraz, Jenkins and Bosco
|
||||
Otha;Warrior;24;22;13;15;2;13;17;13
|
||||
Cletus;Necromancer;4;8;20;16;Moen - Roberts
|
||||
Katelynn;Hunter;2;24;9;9;Feil Inc
|
6
L4/LD_24/App_Data/Actors3.txt
Normal file
6
L4/LD_24/App_Data/Actors3.txt
Normal file
@ -0,0 +1,6 @@
|
||||
Fairy
|
||||
Celestineville
|
||||
Alec;Hunter;20;14;13;4;9;6;21;23
|
||||
Summer;Warrior;6;11;23;7;19;12;19;24
|
||||
Rylan;Archer;13;17;23;20;10;10;17;7
|
||||
Gisselle;Warrior;11;10;11;5;6;16;6;12
|
4
L4/LD_24/App_Data/Klasės.csv
Normal file
4
L4/LD_24/App_Data/Klasės.csv
Normal file
@ -0,0 +1,4 @@
|
||||
Warrior
|
||||
Archer
|
||||
Hunter
|
||||
Necromancer
|
|
8
L4/LD_24/App_Data/Riktine.csv
Normal file
8
L4/LD_24/App_Data/Riktine.csv
Normal file
@ -0,0 +1,8 @@
|
||||
Halfling;Leifberg;Clare;Warrior;17;2;7;23;14;23;19;6
|
||||
Fairy;Celestineville;Summer;Warrior;6;11;23;7;19;12;19;24
|
||||
Fairy;Celestineville;Alec;Hunter;20;14;13;4;9;6;21;23
|
||||
Halfling;Leifberg;Mike;Necromancer;18;24;3;11;23;11;22;9
|
||||
Orc;Amandatown;Domenico;Archer;24;10;3;25;Jacobi Group
|
||||
Halfling;Leifberg;Yasmine;Archer;6;24;3;4;O'Keefe and Sons
|
||||
Halfling;Leifberg;Katelynn;Hunter;2;24;9;9;Feil Inc
|
||||
Orc;Amandatown;Mercedes;Warrior;24;18;13;17;Cummings, Lehner and Wilkinson
|
|
2
L4/LD_24/App_Data/Trūkstami.csv
Normal file
2
L4/LD_24/App_Data/Trūkstami.csv
Normal file
@ -0,0 +1,2 @@
|
||||
Orc
|
||||
Fairy
|
|
33
L4/LD_24/Code/Actor.cs
Normal file
33
L4/LD_24/Code/Actor.cs
Normal file
@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace LD_24.Code
|
||||
{
|
||||
public abstract class Actor
|
||||
{
|
||||
public string Race { get; set; }
|
||||
public string StartingTown { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Class { get; set; }
|
||||
public int Health { get; set; }
|
||||
public int Mana { get; set; }
|
||||
public int Attack { get; set; }
|
||||
public int Defense { get; set; }
|
||||
|
||||
public Actor(string race, string startingTown, string name, string @class, int health, int mana, int attack, int defense)
|
||||
{
|
||||
Race = race;
|
||||
StartingTown = startingTown;
|
||||
Name = name;
|
||||
Class = @class;
|
||||
Health = health;
|
||||
Mana = mana;
|
||||
Attack = attack;
|
||||
Defense = defense;
|
||||
}
|
||||
|
||||
public abstract string ToCSVLine();
|
||||
}
|
||||
}
|
38
L4/LD_24/Code/Hero.cs
Normal file
38
L4/LD_24/Code/Hero.cs
Normal file
@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace LD_24.Code
|
||||
{
|
||||
public class Hero : Actor, IComparable<Hero>, IEquatable<Hero>
|
||||
{
|
||||
public int Power { get; set; }
|
||||
public int Agility { get; set; }
|
||||
public int Intellect { get; set; }
|
||||
public int Special { get; set; }
|
||||
|
||||
public Hero(string race, string startingTown, string name, string @class, int health, int mana, int attack, int defense, int power, int agility, int intellect, int special) : base(race, startingTown, name, @class, health, mana, attack, defense)
|
||||
{
|
||||
Power = power;
|
||||
Agility = agility;
|
||||
Intellect = intellect;
|
||||
Special = special;
|
||||
}
|
||||
|
||||
public int CompareTo(Hero other)
|
||||
{
|
||||
return Intellect.CompareTo(other.Intellect);
|
||||
}
|
||||
|
||||
public bool Equals(Hero other)
|
||||
{
|
||||
return Intellect.Equals(other.Intellect);
|
||||
}
|
||||
|
||||
public override string ToCSVLine()
|
||||
{
|
||||
return string.Join(";", Race, StartingTown, Name, Class, Health, Mana, Attack, Defense, Power, Agility, Intellect, Special);
|
||||
}
|
||||
}
|
||||
}
|
148
L4/LD_24/Code/InOutUtils.cs
Normal file
148
L4/LD_24/Code/InOutUtils.cs
Normal file
@ -0,0 +1,148 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.IO;
|
||||
using System.Diagnostics;
|
||||
using Bogus;
|
||||
using System.Text;
|
||||
|
||||
namespace LD_24.Code
|
||||
{
|
||||
public static class InOutUtils
|
||||
{
|
||||
private static readonly List<string> Races = new List<string> { "Human", "Orc", "Elf", "Dwarf", "Fairy", "Halfling" };
|
||||
private static readonly List<string> Classess = new List<string> { "Warrior", "Hunter", "Archer", "Mage", "Necromancer" };
|
||||
private static readonly Faker faker = new Faker();
|
||||
|
||||
public static IEnumerable<string> ReadLines(string filename)
|
||||
{
|
||||
using (var reader = new StreamReader(filename))
|
||||
{
|
||||
string line;
|
||||
while ((line = reader.ReadLine()) != null)
|
||||
{
|
||||
// This check is for ignoring empty lines
|
||||
if (line.Length > 0)
|
||||
{
|
||||
yield return line;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static List<Actor> ReadActors(string filename)
|
||||
{
|
||||
var actors = new List<Actor>();
|
||||
var lines = ReadLines(filename);
|
||||
var race = lines.First().Trim();
|
||||
var startingTown = lines.Skip(1).First().Trim();
|
||||
foreach (var line in lines.Skip(2))
|
||||
{
|
||||
string[] parts = line.Split(';');
|
||||
if (parts.Length != 7 && parts.Length != 10)
|
||||
{
|
||||
throw new Exception($"Invalid number of values given: '{line}'");
|
||||
}
|
||||
|
||||
string name = parts[0].Trim();
|
||||
string @class = parts[1].Trim();
|
||||
int health = int.Parse(parts[2]);
|
||||
int mana = int.Parse(parts[3]);
|
||||
int attack = int.Parse(parts[4]);
|
||||
int defense = int.Parse(parts[5]);
|
||||
if (parts.Length == 7)
|
||||
{
|
||||
string guild = parts[6].Trim();
|
||||
actors.Add(new NPC(race, startingTown, name, @class, health, mana, attack, defense, guild));
|
||||
}
|
||||
else if (parts.Length == 10)
|
||||
{
|
||||
int power = int.Parse(parts[6]);
|
||||
int agility = int.Parse(parts[7]);
|
||||
int intellect = int.Parse(parts[8]);
|
||||
int special = int.Parse(parts[9]);
|
||||
actors.Add(new Hero(race, startingTown, name, @class, health, mana, attack, defense, power, agility, intellect, special));
|
||||
}
|
||||
}
|
||||
return actors;
|
||||
}
|
||||
|
||||
public static void GenerateFakeActors(string filename)
|
||||
{
|
||||
using (var writer = new StreamWriter(filename))
|
||||
{
|
||||
writer.WriteLine(faker.PickRandom(Races));
|
||||
writer.WriteLine(faker.Address.City());
|
||||
int count = faker.Random.Number(2, 10);
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
string name = faker.Name.FirstName();
|
||||
string @class = faker.PickRandom(Classess);
|
||||
int health = faker.Random.Number(1, 25);
|
||||
int mana = faker.Random.Number(1, 25);
|
||||
int attack = faker.Random.Number(1, 25);
|
||||
int defense = faker.Random.Number(1, 25);
|
||||
writer.Write($"{name};{@class};{health};{mana};{attack};{defense};");
|
||||
if (faker.Random.Number(100) < 60)
|
||||
{
|
||||
string guild = faker.Company.CompanyName();
|
||||
writer.WriteLine($"{guild}");
|
||||
} else
|
||||
{
|
||||
int power = faker.Random.Number(1, 25);
|
||||
int agility = faker.Random.Number(1, 25);
|
||||
int intellect = faker.Random.Number(1, 25);
|
||||
int special = faker.Random.Number(1, 25);
|
||||
writer.WriteLine($"{power};{agility};{intellect};{special}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static List<Actor> ReadActorsDir(string directory, string pattern = "*.txt")
|
||||
{
|
||||
if (!Directory.Exists(directory))
|
||||
{
|
||||
throw new Exception(string.Format("Directory '{0}' not found", directory));
|
||||
}
|
||||
var merged = new List<Actor>();
|
||||
foreach (var filename in Directory.GetFiles(directory, pattern))
|
||||
{
|
||||
merged.AddRange(ReadActors(filename));
|
||||
}
|
||||
return merged;
|
||||
}
|
||||
|
||||
public static void PrintClassesCSV(string filename, List<string> classes)
|
||||
{
|
||||
using (var writer = new StreamWriter(filename, false, Encoding.UTF8))
|
||||
{
|
||||
foreach (var @class in classes)
|
||||
{
|
||||
writer.WriteLine(@class);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void PrintMissingActors(string filename, Tuple<List<string>, List<string>> missingActors)
|
||||
{
|
||||
using (var writer = new StreamWriter(filename, false, Encoding.UTF8))
|
||||
{
|
||||
writer.WriteLine(string.Join(";", missingActors.Item1));
|
||||
writer.WriteLine(string.Join(";", missingActors.Item2));
|
||||
}
|
||||
}
|
||||
|
||||
public static void PrintTeam(string filename, List<Actor> team)
|
||||
{
|
||||
using (var writer = new StreamWriter(filename, false, Encoding.UTF8))
|
||||
{
|
||||
foreach (var actor in team)
|
||||
{
|
||||
writer.WriteLine(actor.ToCSVLine());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
32
L4/LD_24/Code/NPC.cs
Normal file
32
L4/LD_24/Code/NPC.cs
Normal file
@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace LD_24.Code
|
||||
{
|
||||
public class NPC : Actor, IComparable<NPC>, IEquatable<NPC>
|
||||
{
|
||||
public string Guild { get; set; }
|
||||
|
||||
public NPC(string race, string startingTown, string name, string @class, int health, int mana, int attack, int defense, string guild) : base(race, startingTown, name, @class, health, mana, attack, defense)
|
||||
{
|
||||
Guild = guild;
|
||||
}
|
||||
|
||||
public int CompareTo(NPC other)
|
||||
{
|
||||
return Attack.CompareTo(other.Attack);
|
||||
}
|
||||
|
||||
public bool Equals(NPC other)
|
||||
{
|
||||
return Attack.Equals(other.Attack);
|
||||
}
|
||||
|
||||
public override string ToCSVLine()
|
||||
{
|
||||
return string.Join(";", Race, StartingTown, Name, Class, Health, Mana, Attack, Defense, Guild);
|
||||
}
|
||||
}
|
||||
}
|
111
L4/LD_24/Code/TaskUtils.cs
Normal file
111
L4/LD_24/Code/TaskUtils.cs
Normal file
@ -0,0 +1,111 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace LD_24.Code
|
||||
{
|
||||
public static class TaskUtils
|
||||
{
|
||||
public static Dictionary<string, int> FindMostHealthByClass(List<Actor> actors)
|
||||
{
|
||||
Dictionary<string, int> mostHealth = new Dictionary<string, int>();
|
||||
foreach (var actor in actors)
|
||||
{
|
||||
if (mostHealth.ContainsKey(actor.Class))
|
||||
{
|
||||
mostHealth[actor.Class] = Math.Max(mostHealth[actor.Class], actor.Health);
|
||||
} else
|
||||
{
|
||||
mostHealth.Add(actor.Class, actor.Health);
|
||||
}
|
||||
}
|
||||
return mostHealth;
|
||||
}
|
||||
|
||||
public static List<string> FindAllClasses(List<Actor> actors)
|
||||
{
|
||||
List<string> result = new List<string>();
|
||||
foreach (var actor in actors)
|
||||
{
|
||||
if (!result.Contains(actor.Class))
|
||||
{
|
||||
result.Add(actor.Class);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public static List<string> FindAllRaces(List<Actor> actors)
|
||||
{
|
||||
List<string> races = new List<string>();
|
||||
foreach (var actor in actors)
|
||||
{
|
||||
if (!races.Contains(actor.Race))
|
||||
{
|
||||
races.Add(actor.Race);
|
||||
}
|
||||
}
|
||||
return races;
|
||||
}
|
||||
|
||||
public static Tuple<List<string>, List<string>> FindMissingActors(List<Actor> actors)
|
||||
{
|
||||
var races = FindAllRaces(actors);
|
||||
var missingHeroes = races;
|
||||
var missingNPCs = new List<string>(races);
|
||||
foreach (var actor in actors)
|
||||
{
|
||||
if (actor is Hero)
|
||||
{
|
||||
missingHeroes.Remove(actor.Race);
|
||||
} else if (actor is NPC)
|
||||
{
|
||||
missingNPCs.Remove(actor.Race);
|
||||
}
|
||||
}
|
||||
|
||||
return Tuple.Create(missingHeroes, missingNPCs);
|
||||
}
|
||||
|
||||
public static List<Actor> FilterMostHealthByClass(List<Actor> actors)
|
||||
{
|
||||
List<Actor> filtered = new List<Actor>();
|
||||
var mostHealths = FindMostHealthByClass(actors);
|
||||
foreach (var actor in actors)
|
||||
{
|
||||
if (mostHealths[actor.Class] == actor.Health)
|
||||
{
|
||||
filtered.Add(actor);
|
||||
}
|
||||
}
|
||||
return filtered;
|
||||
}
|
||||
|
||||
public static List<Hero> FilterHeroesByIntellect(List<Actor> actors, int minIntellect)
|
||||
{
|
||||
List<Hero> filtered = new List<Hero>();
|
||||
foreach (var actor in actors)
|
||||
{
|
||||
if (actor is Hero && (actor as Hero).Intellect > minIntellect)
|
||||
{
|
||||
filtered.Add(actor as Hero);
|
||||
}
|
||||
}
|
||||
return filtered;
|
||||
}
|
||||
|
||||
public static List<NPC> FilterNPCsByAttack(List<Actor> actors, int maxAttack)
|
||||
{
|
||||
List<NPC> filtered = new List<NPC>();
|
||||
foreach (var actor in actors)
|
||||
{
|
||||
if (actor is NPC && actor.Attack < maxAttack)
|
||||
{
|
||||
filtered.Add(actor as NPC);
|
||||
}
|
||||
}
|
||||
return filtered;
|
||||
}
|
||||
}
|
||||
}
|
33
L4/LD_24/Forma1.aspx
Normal file
33
L4/LD_24/Forma1.aspx
Normal file
@ -0,0 +1,33 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Forma1.aspx.cs" Inherits="LD_24.Forma1" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<link href="~/Styles/main.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
<asp:Label ID="Label3" runat="server" Text="Minimalus herojaus intelekto kiekis:"></asp:Label>
|
||||
<br />
|
||||
<asp:TextBox ID="TextBox1" runat="server" TextMode="Number"></asp:TextBox>
|
||||
<br />
|
||||
<asp:Label ID="Label4" runat="server" Text="Maksimalus NPC žalos kiekis:"></asp:Label>
|
||||
<br />
|
||||
<asp:TextBox ID="TextBox2" runat="server" TextMode="Number"></asp:TextBox>
|
||||
<br />
|
||||
<br />
|
||||
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Vykdyti" />
|
||||
<br />
|
||||
<br />
|
||||
<asp:Label ID="Label1" runat="server" Text="Pradiniai duomenys:"></asp:Label>
|
||||
<asp:Table ID="Table1" runat="server">
|
||||
</asp:Table>
|
||||
<asp:Label ID="Label2" runat="server" Text="Daugiausiai gyvybės taškų pagal klases:"></asp:Label>
|
||||
<asp:Table ID="Table2" runat="server">
|
||||
</asp:Table>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
72
L4/LD_24/Forma1.aspx.cs
Normal file
72
L4/LD_24/Forma1.aspx.cs
Normal file
@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.IO;
|
||||
using LD_24.Code;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace LD_24
|
||||
{
|
||||
public partial class Forma1 : System.Web.UI.Page
|
||||
{
|
||||
private List<Actor> actors = null;
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
string[] actorFiles = { "Actors1.txt", "Actors2.txt", "Actors3.txt" };
|
||||
foreach (string name in actorFiles)
|
||||
{
|
||||
string filename = Server.MapPath($"App_Data/{name}");
|
||||
if (!File.Exists(filename))
|
||||
{
|
||||
InOutUtils.GenerateFakeActors(filename);
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
actors = InOutUtils.ReadActorsDir(Server.MapPath("App_Data"));
|
||||
} catch (Exception ex)
|
||||
{
|
||||
Debug.WriteLine("Oops an error occured:");
|
||||
Debug.WriteLine(ex);
|
||||
throw ex;
|
||||
}
|
||||
|
||||
Label1.Visible = false;
|
||||
Label2.Visible = false;
|
||||
}
|
||||
|
||||
protected void Button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
Label1.Visible = true;
|
||||
Label2.Visible = true;
|
||||
|
||||
int minHeroIntellect = int.Parse(TextBox1.Text);
|
||||
int maxNPCAttack = int.Parse(TextBox2.Text);
|
||||
|
||||
ShowActors(Table1, actors);
|
||||
|
||||
var heatlhyActors = TaskUtils.FilterMostHealthByClass(actors);
|
||||
ShowHealthyActors(Table2, heatlhyActors);
|
||||
|
||||
var allClasses = TaskUtils.FindAllClasses(actors);
|
||||
InOutUtils.PrintClassesCSV(Server.MapPath("App_Data/Klasės.csv"), allClasses);
|
||||
|
||||
var missingActors = TaskUtils.FindMissingActors(actors);
|
||||
InOutUtils.PrintMissingActors(Server.MapPath("App_Data/Trūkstami.csv"), missingActors);
|
||||
|
||||
var intellectHeroes = TaskUtils.FilterHeroesByIntellect(actors, minHeroIntellect);
|
||||
var strengthNPCs = TaskUtils.FilterNPCsByAttack(actors, maxNPCAttack);
|
||||
intellectHeroes.Sort();
|
||||
strengthNPCs.Sort();
|
||||
var team = new List<Actor>();
|
||||
team.AddRange(intellectHeroes);
|
||||
team.AddRange(strengthNPCs);
|
||||
InOutUtils.PrintTeam(Server.MapPath("App_Data/Riktine.csv"), team);
|
||||
}
|
||||
}
|
||||
}
|
107
L4/LD_24/Forma1.aspx.designer.cs
generated
Normal file
107
L4/LD_24/Forma1.aspx.designer.cs
generated
Normal file
@ -0,0 +1,107 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace LD_24
|
||||
{
|
||||
|
||||
|
||||
public partial class Forma1
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// Label3 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label3;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox TextBox1;
|
||||
|
||||
/// <summary>
|
||||
/// Label4 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label4;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox TextBox2;
|
||||
|
||||
/// <summary>
|
||||
/// Button1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button Button1;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// Table1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table Table1;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// Table2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table Table2;
|
||||
}
|
||||
}
|
68
L4/LD_24/Forma1Utils.cs
Normal file
68
L4/LD_24/Forma1Utils.cs
Normal file
@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI.WebControls;
|
||||
using LD_24.Code;
|
||||
|
||||
namespace LD_24
|
||||
{
|
||||
public partial class Forma1 : System.Web.UI.Page
|
||||
{
|
||||
public static IEnumerable<Tuple<T, TableRow>> ShowTable<T>(Table table, IEnumerable<T> list, params string[] columns)
|
||||
{
|
||||
TableHeaderRow header = new TableHeaderRow();
|
||||
foreach (string column in columns)
|
||||
{
|
||||
header.Cells.Add(new TableHeaderCell { Text = column });
|
||||
}
|
||||
table.Rows.Add(header);
|
||||
|
||||
bool noRows = true;
|
||||
foreach (T item in list)
|
||||
{
|
||||
TableRow row = new TableRow();
|
||||
yield return Tuple.Create(item, row);
|
||||
table.Rows.Add(row);
|
||||
noRows = false;
|
||||
}
|
||||
|
||||
if (noRows)
|
||||
{
|
||||
TableRow row = new TableRow();
|
||||
row.Cells.Add(new TableCell { Text = "Nėra", ColumnSpan = columns.Length });
|
||||
table.Rows.Add(row);
|
||||
}
|
||||
}
|
||||
|
||||
public static void ShowActors(Table table, IEnumerable<Actor> actors)
|
||||
{
|
||||
foreach (var tuple in ShowTable(table, actors, "Rasė", "Miestas", "Vardas", "Klasė", "Gyvybė", "Mana", "Žala", "Šarvai"))
|
||||
{
|
||||
Actor actor = tuple.Item1;
|
||||
TableRow row = tuple.Item2;
|
||||
row.Cells.Add(new TableCell { Text = actor.Race });
|
||||
row.Cells.Add(new TableCell { Text = actor.StartingTown });
|
||||
row.Cells.Add(new TableCell { Text = actor.Name });
|
||||
row.Cells.Add(new TableCell { Text = actor.Class });
|
||||
row.Cells.Add(new TableCell { Text = actor.Health.ToString() });
|
||||
row.Cells.Add(new TableCell { Text = actor.Mana.ToString() });
|
||||
row.Cells.Add(new TableCell { Text = actor.Attack.ToString() });
|
||||
row.Cells.Add(new TableCell { Text = actor.Defense.ToString() });
|
||||
}
|
||||
}
|
||||
|
||||
public static void ShowHealthyActors(Table table, IEnumerable<Actor> actors)
|
||||
{
|
||||
foreach (var tuple in ShowTable(table, actors, "Vardas", "Rasė", "Klasė", "Gyvybė"))
|
||||
{
|
||||
Actor actor = tuple.Item1;
|
||||
TableRow row = tuple.Item2;
|
||||
row.Cells.Add(new TableCell { Text = actor.Name });
|
||||
row.Cells.Add(new TableCell { Text = actor.Race });
|
||||
row.Cells.Add(new TableCell { Text = actor.Class });
|
||||
row.Cells.Add(new TableCell { Text = actor.Health.ToString() });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
150
L4/LD_24/LD_24.csproj
Normal file
150
L4/LD_24/LD_24.csproj
Normal file
@ -0,0 +1,150 @@
|
||||
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props" Condition="Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>
|
||||
</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{4B4C2BFE-C41E-4EA1-BC86-979E2CA1D27B}</ProjectGuid>
|
||||
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>LD_24</RootNamespace>
|
||||
<AssemblyName>LD_24</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<Use64BitIISExpress />
|
||||
<IISExpressSSLPort>
|
||||
</IISExpressSSLPort>
|
||||
<IISExpressAnonymousAuthentication />
|
||||
<IISExpressWindowsAuthentication />
|
||||
<IISExpressUseClassicPipelineMode />
|
||||
<UseGlobalApplicationHostFile />
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Bogus, Version=34.0.2.0, Culture=neutral, PublicKeyToken=fa1bb3f3f218129a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Bogus.34.0.2\lib\net40\Bogus.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Web.DynamicData" />
|
||||
<Reference Include="System.Web.Entity" />
|
||||
<Reference Include="System.Web.ApplicationServices" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Web.Services" />
|
||||
<Reference Include="System.EnterpriseServices" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform">
|
||||
<HintPath>..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="App_Data\Actors1.txt" />
|
||||
<Content Include="App_Data\Actors2.txt" />
|
||||
<Content Include="App_Data\Actors3.txt" />
|
||||
<Content Include="Forma1.aspx" />
|
||||
<Content Include="Styles\main.css" />
|
||||
<Content Include="Web.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Code\Actor.cs" />
|
||||
<Compile Include="Code\Hero.cs" />
|
||||
<Compile Include="Code\InOutUtils.cs" />
|
||||
<Compile Include="Code\NPC.cs" />
|
||||
<Compile Include="Code\TaskUtils.cs" />
|
||||
<Compile Include="Forma1.aspx.cs">
|
||||
<DependentUpon>Forma1.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Forma1.aspx.designer.cs">
|
||||
<DependentUpon>Forma1.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Forma1Utils.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="App_Data\Klasės.csv" />
|
||||
<Content Include="App_Data\Trūkstami.csv" />
|
||||
<Content Include="App_Data\Riktine.csv" />
|
||||
<None Include="packages.config" />
|
||||
<None Include="Web.Debug.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</None>
|
||||
<None Include="Web.Release.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
<WebProjectProperties>
|
||||
<UseIIS>True</UseIIS>
|
||||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>50285</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>http://localhost:44308/</IISUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
<UseCustomServer>False</UseCustomServer>
|
||||
<CustomServerUrl>
|
||||
</CustomServerUrl>
|
||||
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
|
||||
</WebProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props'))" />
|
||||
</Target>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
35
L4/LD_24/Properties/AssemblyInfo.cs
Normal file
35
L4/LD_24/Properties/AssemblyInfo.cs
Normal file
@ -0,0 +1,35 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("LD_24")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("LD_24")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2022")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("4b4c2bfe-c41e-4ea1-bc86-979e2ca1d27b")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
11
L4/LD_24/Styles/main.css
Normal file
11
L4/LD_24/Styles/main.css
Normal file
@ -0,0 +1,11 @@
|
||||
table, th, td {
|
||||
border: 1px solid black;
|
||||
padding: 0.5rem;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table {
|
||||
margin-bottom: 1em;
|
||||
background-color: #FFFFCC;
|
||||
}
|
||||
|
30
L4/LD_24/Web.Debug.config
Normal file
30
L4/LD_24/Web.Debug.config
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- For more information on using web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
In the example below, the "SetAttributes" transform will change the value of
|
||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||
finds an attribute "name" that has a value of "MyDB".
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
Note that because there is only one customErrors section under the
|
||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
31
L4/LD_24/Web.Release.config
Normal file
31
L4/LD_24/Web.Release.config
Normal file
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- For more information on using web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
In the example below, the "SetAttributes" transform will change the value of
|
||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||
finds an attribute "name" that has a value of "MyDB".
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
Note that because there is only one customErrors section under the
|
||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
18
L4/LD_24/Web.config
Normal file
18
L4/LD_24/Web.config
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
For more information on how to configure your ASP.NET application, please visit
|
||||
https://go.microsoft.com/fwlink/?LinkId=169433
|
||||
-->
|
||||
<configuration>
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.6" />
|
||||
<httpRuntime targetFramework="4.6" />
|
||||
<globalization fileEncoding="utf-8" />
|
||||
</system.web>
|
||||
<system.codedom>
|
||||
<compilers>
|
||||
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />
|
||||
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" />
|
||||
</compilers>
|
||||
</system.codedom>
|
||||
</configuration>
|
5
L4/LD_24/packages.config
Normal file
5
L4/LD_24/packages.config
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Bogus" version="34.0.2" targetFramework="net46" />
|
||||
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="2.0.1" targetFramework="net46" />
|
||||
</packages>
|
Loading…
Reference in New Issue
Block a user