저는 맞춤형 설치 프로그램에서 DacFX를 사용하고 있습니다. Cmd 변수 DefaultDataPath & DefaultLogPath를 전달하여 기본 데이터 및 로그 파일 위치를 재정의하려고 시도하고 있지만 데이터베이스의 파일은 여전히 기본 위치에 생성됩니다. 이것은 매우 간단하고 쉽게해야하지만 스크립트를 생성하고 파일에 저장하고 코드를 실행 한 후에도 DacOptions 객체에는 SqlCommmandVariableValues에 대한 올바른 값이 있지만 생성 된 스크립트에는 값. 그들이 무시당하는 것 같습니다.DacFx가 Cmd 변수를 무시합니다. DefaultDataPath & DefaultLogPath
dacOptions.SqlCommandVariableValues.Add("DefaultDataPath", dataPath);
dacOptions.SqlCommandVariableValues.Add("DefaultLogPath", logPath);