--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <VCProjectVersion>15.0</VCProjectVersion>
+ <ProjectGuid>{D089DAE3-5308-4394-81A8-95811E4F2EC5}</ProjectGuid>
+ <Keyword>Win32Proj</Keyword>
+ <RootNamespace>MinZip</RootNamespace>
+ <WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v141</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v141</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v141</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v141</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="ExtensionSettings">
+ </ImportGroup>
+ <ImportGroup Label="Shared">
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <LinkIncremental>true</LinkIncremental>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <LinkIncremental>true</LinkIncremental>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <LinkIncremental>false</LinkIncremental>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <LinkIncremental>false</LinkIncremental>
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ClCompile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>Disabled</Optimization>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>WIN32;_DEBUG;MINZIP_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <ClCompile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>Disabled</Optimization>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>_DEBUG;MINZIP_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ClCompile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>MaxSpeed</Optimization>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>WIN32;NDEBUG;MINZIP_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <ClCompile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>MaxSpeed</Optimization>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>NDEBUG;MINZIP_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ClInclude Include="stdafx.h" />
+ <ClInclude Include="targetver.h" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="dllmain.cpp" />
+ <ClCompile Include="MinZip.cpp" />
+ <ClCompile Include="stdafx.cpp">
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
+ </ClCompile>
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <Filter Include="소스 파일">
+ <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
+ <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
+ </Filter>
+ <Filter Include="헤더 파일">
+ <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
+ <Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
+ </Filter>
+ <Filter Include="리소스 파일">
+ <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
+ <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
+ </Filter>
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="stdafx.h">
+ <Filter>헤더 파일</Filter>
+ </ClInclude>
+ <ClInclude Include="targetver.h">
+ <Filter>헤더 파일</Filter>
+ </ClInclude>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="stdafx.cpp">
+ <Filter>소스 파일</Filter>
+ </ClCompile>
+ <ClCompile Include="MinZip.cpp">
+ <Filter>소스 파일</Filter>
+ </ClCompile>
+ <ClCompile Include="dllmain.cpp">
+ <Filter>소스 파일</Filter>
+ </ClCompile>
+ </ItemGroup>
+</Project>
\ No newline at end of file
-\r
Microsoft Visual Studio Solution File, Format Version 12.00\r
# Visual Studio 15\r
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZipProject", "ZipProject\ZipProject.csproj", "{8DD9DB0B-FD7E-428A-B11E-BEB93D8FC50E}"\r
+VisualStudioVersion = 15.0.28010.2046\r
+MinimumVisualStudioVersion = 10.0.40219.1\r
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ZipProject", "ZipProject\ZipProject.csproj", "{8DD9DB0B-FD7E-428A-B11E-BEB93D8FC50E}"\r
+EndProject\r
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MinZip", "MinZip\MinZip.vcxproj", "{D089DAE3-5308-4394-81A8-95811E4F2EC5}"\r
EndProject\r
Global\r
GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
Debug|Any CPU = Debug|Any CPU\r
+ Debug|x64 = Debug|x64\r
+ Debug|x86 = Debug|x86\r
Release|Any CPU = Release|Any CPU\r
+ Release|x64 = Release|x64\r
+ Release|x86 = Release|x86\r
EndGlobalSection\r
GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
{8DD9DB0B-FD7E-428A-B11E-BEB93D8FC50E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
{8DD9DB0B-FD7E-428A-B11E-BEB93D8FC50E}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
+ {8DD9DB0B-FD7E-428A-B11E-BEB93D8FC50E}.Debug|x64.ActiveCfg = Debug|Any CPU\r
+ {8DD9DB0B-FD7E-428A-B11E-BEB93D8FC50E}.Debug|x64.Build.0 = Debug|Any CPU\r
+ {8DD9DB0B-FD7E-428A-B11E-BEB93D8FC50E}.Debug|x86.ActiveCfg = Debug|Any CPU\r
+ {8DD9DB0B-FD7E-428A-B11E-BEB93D8FC50E}.Debug|x86.Build.0 = Debug|Any CPU\r
{8DD9DB0B-FD7E-428A-B11E-BEB93D8FC50E}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
{8DD9DB0B-FD7E-428A-B11E-BEB93D8FC50E}.Release|Any CPU.Build.0 = Release|Any CPU\r
+ {8DD9DB0B-FD7E-428A-B11E-BEB93D8FC50E}.Release|x64.ActiveCfg = Release|Any CPU\r
+ {8DD9DB0B-FD7E-428A-B11E-BEB93D8FC50E}.Release|x64.Build.0 = Release|Any CPU\r
+ {8DD9DB0B-FD7E-428A-B11E-BEB93D8FC50E}.Release|x86.ActiveCfg = Release|Any CPU\r
+ {8DD9DB0B-FD7E-428A-B11E-BEB93D8FC50E}.Release|x86.Build.0 = Release|Any CPU\r
+ {D089DAE3-5308-4394-81A8-95811E4F2EC5}.Debug|Any CPU.ActiveCfg = Debug|Win32\r
+ {D089DAE3-5308-4394-81A8-95811E4F2EC5}.Debug|x64.ActiveCfg = Debug|x64\r
+ {D089DAE3-5308-4394-81A8-95811E4F2EC5}.Debug|x64.Build.0 = Debug|x64\r
+ {D089DAE3-5308-4394-81A8-95811E4F2EC5}.Debug|x86.ActiveCfg = Debug|Win32\r
+ {D089DAE3-5308-4394-81A8-95811E4F2EC5}.Debug|x86.Build.0 = Debug|Win32\r
+ {D089DAE3-5308-4394-81A8-95811E4F2EC5}.Release|Any CPU.ActiveCfg = Release|Win32\r
+ {D089DAE3-5308-4394-81A8-95811E4F2EC5}.Release|x64.ActiveCfg = Release|x64\r
+ {D089DAE3-5308-4394-81A8-95811E4F2EC5}.Release|x64.Build.0 = Release|x64\r
+ {D089DAE3-5308-4394-81A8-95811E4F2EC5}.Release|x86.ActiveCfg = Release|Win32\r
+ {D089DAE3-5308-4394-81A8-95811E4F2EC5}.Release|x86.Build.0 = Release|Win32\r
+ EndGlobalSection\r
+ GlobalSection(SolutionProperties) = preSolution\r
+ HideSolutionNode = FALSE\r
+ EndGlobalSection\r
+ GlobalSection(ExtensibilityGlobals) = postSolution\r
+ SolutionGuid = {C551BC7A-D12E-4A97-9B4A-2A9172591DD5}\r
EndGlobalSection\r
GlobalSection(MonoDevelopProperties) = preSolution\r
Policies = $0\r
$0.DotNetNamingPolicy = $1\r
$1.DirectoryNamespaceAssociation = PrefixedHierarchical\r
- $0.TextStylePolicy = $2\r
+ $0.TextStylePolicy = $16\r
$2.FileWidth = 80\r
$2.TabWidth = 2\r
$2.TabsToSpaces = True\r
$2.scope = text/x-csharp\r
$0.CSharpFormattingPolicy = $3\r
$3.scope = text/x-csharp\r
- $0.TextStylePolicy = $4\r
$4.FileWidth = 80\r
$4.TabsToSpaces = True\r
$4.scope = text/plain\r
- $0.TextStylePolicy = $5\r
$5.TabWidth = 2\r
$5.TabsToSpaces = True\r
$5.IndentWidth = 2\r
$5.NoTabsAfterNonTabs = True\r
$5.scope = text/x-cshtml-core-web\r
- $0.HTMLFormattingPolicy = $6\r
+ $0.HTMLFormattingPolicy = $10\r
$6.inheritsSet = null\r
$6.scope = text/x-cshtml-core-web\r
- $0.TextStylePolicy = $7\r
$7.TabWidth = 2\r
$7.TabsToSpaces = True\r
$7.IndentWidth = 2\r
$7.NoTabsAfterNonTabs = True\r
$7.scope = text/x-cshtml-web\r
- $0.HTMLFormattingPolicy = $8\r
$8.inheritsSet = null\r
$8.scope = text/x-cshtml-web\r
- $0.TextStylePolicy = $9\r
$9.TabWidth = 2\r
$9.TabsToSpaces = True\r
$9.IndentWidth = 2\r
$9.NoTabsAfterNonTabs = True\r
$9.scope = text/x-html\r
- $0.HTMLFormattingPolicy = $10\r
$10.FormatOnPaste = True\r
$10.XHTMLCodingStyle = True\r
$10.scope = text/x-html\r
- $0.TextStylePolicy = $11\r
$11.FileWidth = 80\r
$11.TabWidth = 2\r
$11.TabsToSpaces = True\r
$11.IndentWidth = 2\r
$11.scope = text/x-web\r
- $0.TextStylePolicy = $12\r
$12.FileWidth = 80\r
$12.TabWidth = 2\r
$12.TabsToSpaces = True\r
$12.IndentWidth = 2\r
$12.scope = text/x-vs\r
- $0.TextStylePolicy = $13\r
$13.TabWidth = 2\r
$13.TabsToSpaces = True\r
$13.IndentWidth = 2\r
$14.FormatOnPaste = True\r
$14.HierarchicalIndentation = True\r
$14.scope = text/x-css\r
- $0.TextStylePolicy = $15\r
$15.FileWidth = 80\r
$15.TabWidth = 2\r
$15.TabsToSpaces = True\r
$15.IndentWidth = 2\r
$15.scope = text/x-javascript\r
- $0.TextStylePolicy = $16\r
$16.inheritsSet = null\r
$16.scope = text/x-json\r
$0.JSONFormattingPolicy = $17\r
using Microsoft.AspNetCore.Http;
using ZipProject.Models;
+
// For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
namespace ZipProject.Controllers
{
- public class WebZipController : Controller
- {
+ public class WebZipController : Controller
+ {
- private readonly ISession session;
+ private readonly ISession session;
- public WebZipController(IHttpContextAccessor httpContextAccessor)
- {
- this.session = httpContextAccessor.HttpContext.Session;
- }
+ public WebZipController(IHttpContextAccessor httpContextAccessor)
+ {
+ this.session = httpContextAccessor.HttpContext.Session;
+ }
- // GET: /<controller>/
- public IActionResult Index(string partial_name)
- {
+ // GET: /<controller>/
+ public IActionResult Index(string partial_name)
+ {
- ZipModel zmodel = new ZipModel();
- zmodel.MakeZip("test");
+ ZipModel zmodel = new ZipModel();
+ zmodel.MakeZip("test");
- if (string.IsNullOrEmpty(HttpContext.Session.GetString("lang")))
- {
- session.SetString("lang", "kr");
- }
+ if (string.IsNullOrEmpty(HttpContext.Session.GetString("lang")))
+ {
+ session.SetString("lang", "kr");
+ }
- if (string.IsNullOrEmpty(partial_name))
- ViewData["partial_page"] = "partial_zip";
- else
- ViewData["partial_page"] = partial_name;
- return View();
- }
+ if (string.IsNullOrEmpty(partial_name))
+ ViewData["partial_page"] = "partial_zip";
+ else
+ ViewData["partial_page"] = partial_name;
+ return View();
+ }
- public IActionResult En()
- {
- session.SetString("lang", "en");
- return Redirect("/");
- }
+ // Request files
+ public IActionResult ProcessingFiles()
+ {
+
+ return null;
+ }
+
+ public IActionResult En()
+ {
+ session.SetString("lang", "en");
+ return Redirect("/");
+ }
+
+ public IActionResult Kr()
+ {
+ session.SetString("lang", "kr");
+ return Redirect("/");
+ }
- public IActionResult Kr()
- {
- session.SetString("lang", "kr");
- return Redirect("/");
}
+ [DllImport("test1.dll")]
- }
}
}
function isDuplicateFile(frontfiles) {
- for (var i = 0; i < frontfiles.length; i++) {
+ for (var i = 0; i < frontfiles.length; i++) {
for (var o = 0; o < files.keys().length; o++) {
if (frontfiles[i].name == files.get(o).get("file").name) {
return true;