반응형

반응형
반응형
반응형
반응형
반응형
반응형

stackoverflow.com/questions/43687058/how-do-i-include-nuget-packages-in-my-solution-for-net-core-projects

 

How do I include NuGet packages in my solution for .Net Core projects?

With classic .Net projects, if I added a reference to a NuGet package, it would get downloaded to a packages folder and I could check that into source control along with the rest of my code. This

stackoverflow.com

sln 파일이 있는 곳에 NuGet.Config 파일을 만들어 다음 내용을 입력 후, 저장하고, 솔루션을 다시 오픈 하면 된다.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <config>
    <add key="globalPackagesFolder" value=".\packages" />
  </config>
</configuration>

반응형
반응형

참고: docs.microsoft.com/ko-kr/dotnet/csharp/language-reference/builtin-types/value-tuples

 

튜플 형식 - C# 참조

C# 튜플 알아보기: 관련 데이터 요소를 느슨하게 그룹화하는 데 사용할 수 있는 간단한 데이터 구조

docs.microsoft.com

튜플 테스트

      static (int plus, int minus, int multiply) returnMultiple(int a, int b)
        {

            int plus = a + b;
            int minus = a - b;
            int multiply = a * b;
            return (plus, minus, multiply);
        }

        static void testMethod()
        {
            var a = returnMultiple(3, 2);
            Console.WriteLine(a.minus);
            Console.WriteLine(a.plus);
            Console.WriteLine(a.multiply);
        }

반응형
반응형

리눅스 상에서 

touch filename

으로 파일내 변화없이 시간 업데이트가 가능합니다.

windows 의 batch 명령어에서도 같은 기능을 하는 명령어를 찾아보았는데요

echo. >> filename

파일 내부 마지막에 공간을 넣어 파일 업데이트 하는 방식으로 시간 없데이트가 됩니다.

 

반응형
반응형

이전 PC 에서 https 로 연결하는 중 다음과 같은 오류가 나면서 해당 사이트를 보여주지 않을 때,

NET::ERR_CERT_DATE_INVALID

리부팅, 크롬 재설치 등 해봐도 소용이 없을 때 루트 인증서 설치를 합니다.

https://tech.signgate.com/demotest/SSL/index.html

 

한국정보인증 SSL 기술지원

[Sectigo(구 COMODO) 루트 인증서 파일 리스트]

tech.signgate.com

설치는 관리자 모드로 해야 하며 설치 이후 바로 오류가 없어지면 정상적으로 사이트로 이동이 가능해집니다.

반응형
반응형

if you don't find required tables under the datatable "electron_release_server", then you must change the connection value in the following fils to 'mysql' from 'postgresql'

/config/env/development.js

/config/env/production.js

then, "npm start" the server will create following tables under the database.

 

출처: https://github.com/ArekSredzki/electron-release-server/issues/10

반응형
반응형

위치: C:\Users\"{사용자}"\AppData\Roaming\Code\User

파일이름: settings.json

{

  "terminal.integrated.shell.windows""C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"

}

다른 터미널 설정

// Command Prompt

"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe"

// PowerShell

"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"

// Git Bash

"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"

// Bash on Ubuntu (on Windows)

"terminal.integrated.shell.windows": "C:\\Windows\\System32\\bash.exe"

반응형
반응형

[Windows 10]

1. 우선, C:\Users\"{사용자}"\AppData\Roaming\Code 폴더 삭제

2. 컨트롤 패널에서 삭제

3. 모든 extensions 까지 삭제를 원하면 C:\Users\han.sungyoup01\.vscode 폴더 삭제

[출처: https://stackoverflow.com/questions/52461400/how-to-completely-remove-vs-code-setting/52462074]

반응형

+ Recent posts