2013-04-05 2 views
1

Могу ли я построить тот же tSQLt.zip, размещенный на Sourceforge путем создания из исходного кода? Как мне это сделать?Как построить tSQLt из исходного кода?

Я проверил голова (в настоящее время R200) ​​в tSQLt SVN repository с помощью этой команды:

svn checkout https://tsqlt.svn.sourceforge.net/svnroot/tsqlt tsqlt 

Существует файл с именем buildNotes.txt в директории сборки, которая описывает процесс сборки. Первый шаг выглядит следующим образом:

Setting up tSQLt build notes: 
1. You must run MSBuild from the command line once before running the build. The reason is that the first time it prompts for the signing 
password. The signing password is: [email protected]$$30rd 

This gets somehow stored internally in Windows, and will not need to 
be re-entered again. 

Here is an example of the MSBuild command: 
c:\Projects\tSQLt.sourceforge\tSQLtCLR\tSQLtCLR>C:/Windows/Microsoft.NET/Framework/v2.0.50727/msbuild.exe tSQLtCLR.csproj /p:Configuration=Release /nologo 

Когда я запускаю пример команды я вижу запрос на ввод пароля:

Import key file

счетный в пароле «P @ $$ 30rd» и нажмите кнопку OK , Пароль, по-видимому, не правильно:

Error importing key

Команда Выход MSBuild выглядит следующим образом:

C:\Users\iain.CORP\SkyDrive\Software\SQL Server\tSQLt\svn\tsqlt\tSQLtCLR\tSQLtCLR>C:/Windows/Microsoft.NET/Framework/v2.0.50727/msbuild.exe tSQLtCLR.csproj /p:Configuration=Release /nologo 
Build started 05/04/2013 19:07:15. 
__________________________________________________ 
Project "C:\Users\iain.CORP\SkyDrive\Software\SQL Server\tSQLt\svn\tsqlt\tSQLtCLR\tSQLtCLR\tSQLtCLR.csproj" (default targets): 

Target GetFrameworkPaths: 
    Could not locate the .NET Framework SDK. The task is looking for the path to the .NET Framework SDK at the location specified in the SDKInstallRootv2.0 value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework. You may be able to solve the problem by doing one of the following: 1.) Install the .NET Framework SDK. 2.) Manually set the above registry key to the correct location. 
Target ResolveKeySource: 
    C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1728,7): error MSB3321: Importing key file "SigningKey.pfx" was canceled. 
Done building target "ResolveKeySource" in project "tSQLtCLR.csproj" -- FAILED. 

Done building project "tSQLtCLR.csproj" -- FAILED. 

Build FAILED. 
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1728,7): error MSB3321: Importing key file "SigningKey.pfx" was canceled. 
    0 Warning(s) 
    1 Error(s) 

Time Elapsed 00:00:07.39 

C:\Users\iain.CORP\SkyDrive\Software\SQL Server\tSQLt\svn\tsqlt\tSQLtCLR\tSQLtCLR>C:/Windows/Microsoft.NET/Framework/v2.0.50727/msbuild.exe tSQLtCLR.csproj /p:Configuration=Release /nologo 
Build started 05/04/2013 19:07:15. 
__________________________________________________ 
Project "C:\Users\iain.CORP\SkyDrive\Software\SQL Server\tSQLt\svn\tsqlt\tSQLtCLR\tSQLtCLR\tSQLtCLR.csproj" (default targets): 

Target GetFrameworkPaths: 
    Could not locate the .NET Framework SDK. The task is looking for the path to the .NET Framework SDK at the location specified in the SDKInstallRootv2.0 value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework. You may be able to solve the problem by doing one of the following: 1.) Install the .NET Framework SDK. 2.) Manually set the above registry key to the correct location. 
Target ResolveKeySource: 
    C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1728,7): error MSB3321: Importing key file "SigningKey.pfx" was canceled. 
Done building target "ResolveKeySource" in project "tSQLtCLR.csproj" -- FAILED. 

Done building project "tSQLtCLR.csproj" -- FAILED. 

Build FAILED. 
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1728,7): error MSB3321: Importing key file "SigningKey.pfx" was canceled. 
    0 Warning(s) 
    1 Error(s) 

Time Elapsed 00:00:07.39 

вывод содержит сообщение "Не удалось обнаружить местонахождение .NET Framework SDK". Это что-то, что я должен установить, чтобы сделать эту работу?

ответ

0

Похоже, что указан неверный пароль. Вы можете открыть tSQLtCLR\tSQLtCLR.sln в интерфейсе Visual Studio и попытаться ввести или изменить пароль. В обоих случаях я получил сообщение «Старый пароль недействителен».

На самом деле вам не нужен именно этот сильный файл ключа имени. Сильное имя является обязательным условием сборки SQL CLR, и вы можете использовать любой файл, в том числе свой собственный. Вы можете создать новый ключевой файл с тем же именем и паролем и успешно построить сборку.

enter image description here

Если вы установили Visual Studio вам не нужно .NET Framework SDK, потому что вы можете подписать сборки через интерфейс. Но если у вас нет ВС, вы должны установить SDK, чтобы иметь возможность использовать sn.exe, который является частью SDK.

Я также попытался this решение, но это не удалось слишком

enter image description here

Смежные вопросы