MSBuild에서 ODBC DSN 생성하고 삭제하기
준비물: MSBuildTasks <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="BuildTool\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/> <!-- 테스트용 DSN 정보 --> <ItemGroup> <DSNToCreate Include="Item"> <Name>DSN_NAME1</Name> <Server>DatabaseServer1</Server> <Database>InitialCatalog1</Database> <Description>ODBC DSN for the Database: DatabaseServer1</Description> <Driver>SQL Native Client</Driver> <LastUser>sa</LastUser> <Trusted_Connection>Yes</Trusted_Connection> </DSNToCreate>…