-
-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a457bfd
commit 1295aa1
Showing
49 changed files
with
5,490 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,3 +71,4 @@ release-preview.cmd | |
paket-files | ||
issueList.md | ||
release/package-lock\.json | ||
*.vsix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,239 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!-- Prevent dotnet template engine to parse this file --> | ||
<!--/-:cnd:noEmit--> | ||
<PropertyGroup> | ||
<!-- Mark that this target file has been loaded. --> | ||
<IsPaketRestoreTargetsFileLoaded>true</IsPaketRestoreTargetsFileLoaded> | ||
<PaketToolsPath>$(MSBuildThisFileDirectory)</PaketToolsPath> | ||
<PaketRootPath>$(MSBuildThisFileDirectory)..\</PaketRootPath> | ||
<PaketRestoreCacheFile>$(PaketRootPath)paket-files\paket.restore.cached</PaketRestoreCacheFile> | ||
<PaketLockFilePath>$(PaketRootPath)paket.lock</PaketLockFilePath> | ||
<MonoPath Condition="'$(MonoPath)' == '' And Exists('/Library/Frameworks/Mono.framework/Commands/mono')">/Library/Frameworks/Mono.framework/Commands/mono</MonoPath> | ||
<MonoPath Condition="'$(MonoPath)' == ''">mono</MonoPath> | ||
<!-- Paket command --> | ||
<PaketExePath Condition=" '$(PaketExePath)' == '' AND Exists('$(PaketRootPath)paket.exe')">$(PaketRootPath)paket.exe</PaketExePath> | ||
<PaketExePath Condition=" '$(PaketExePath)' == '' ">$(PaketToolsPath)paket.exe</PaketExePath> | ||
<PaketCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketExePath)"</PaketCommand> | ||
<PaketCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"</PaketCommand> | ||
<PaketBootStrapperExePath Condition=" '$(PaketBootStrapperExePath)' == '' AND Exists('$(PaketRootPath)paket.bootstrapper.exe')">$(PaketRootPath)paket.bootstrapper.exe</PaketBootStrapperExePath> | ||
<PaketBootStrapperExePath Condition=" '$(PaketBootStrapperExePath)' == '' ">$(PaketToolsPath)paket.bootstrapper.exe</PaketBootStrapperExePath> | ||
<PaketBootStrapperCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketBootStrapperExePath)"</PaketBootStrapperCommand> | ||
<PaketBootStrapperCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketBootStrapperExePath)"</PaketBootStrapperCommand> | ||
|
||
<!-- Disable automagic references for F# dotnet sdk --> | ||
<!-- This will not do anything for other project types --> | ||
<!-- see https://github.com/fsharp/fslang-design/blob/master/RFCs/FS-1032-fsharp-in-dotnet-sdk.md --> | ||
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference> | ||
<DisableImplicitSystemValueTupleReference>true</DisableImplicitSystemValueTupleReference> | ||
</PropertyGroup> | ||
|
||
<Target Name="PaketRestore" BeforeTargets="_GenerateDotnetCliToolReferenceSpecs;_GenerateProjectRestoreGraphPerFramework;_GenerateRestoreGraphWalkPerFramework;CollectPackageReferences" > | ||
|
||
<!-- Step 1 Check if lockfile is properly restored --> | ||
<PropertyGroup> | ||
<PaketRestoreRequired>true</PaketRestoreRequired> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="Exists('$(PaketRestoreCacheFile)') "> | ||
<PaketRestoreCachedHash>$([System.IO.File]::ReadAllText('$(PaketRestoreCacheFile)'))</PaketRestoreCachedHash> | ||
<PaketRestoreLockFileHash>$([System.IO.File]::ReadAllText('$(PaketLockFilePath)'))</PaketRestoreLockFileHash> | ||
<PaketRestoreRequired>true</PaketRestoreRequired> | ||
<PaketRestoreRequired Condition=" '$(PaketRestoreLockFileHash)' == '$(PaketRestoreCachedHash)' ">false</PaketRestoreRequired> | ||
<PaketRestoreRequired Condition=" '$(PaketRestoreLockFileHash)' == '' ">true</PaketRestoreRequired> | ||
</PropertyGroup> | ||
|
||
<!-- Do a global restore if required --> | ||
<Exec Command='$(PaketBootStrapperCommand)' Condition="Exists('$(PaketBootStrapperExePath)') AND !(Exists('$(PaketExePath)'))" ContinueOnError="false" /> | ||
<Exec Command='$(PaketCommand) restore' Condition=" '$(PaketRestoreRequired)' == 'true' " ContinueOnError="false" /> | ||
|
||
<!-- Step 2 Detect project specific changes --> | ||
<PropertyGroup> | ||
<PaketReferencesCachedFilePath>$(MSBuildProjectDirectory)\obj\$(MSBuildProjectFile).paket.references.cached</PaketReferencesCachedFilePath> | ||
<!-- MyProject.fsproj.paket.references has the highest precedence --> | ||
<PaketOriginalReferencesFilePath>$(MSBuildProjectFullPath).paket.references</PaketOriginalReferencesFilePath> | ||
<!-- MyProject.paket.references --> | ||
<PaketOriginalReferencesFilePath Condition=" !Exists('$(PaketOriginalReferencesFilePath)')">$(MSBuildProjectDirectory)\$(MSBuildProjectName).paket.references</PaketOriginalReferencesFilePath> | ||
<!-- paket.references --> | ||
<PaketOriginalReferencesFilePath Condition=" !Exists('$(PaketOriginalReferencesFilePath)')">$(MSBuildProjectDirectory)\paket.references</PaketOriginalReferencesFilePath> | ||
<PaketResolvedFilePath>$(MSBuildProjectDirectory)\obj\$(MSBuildProjectFile).$(TargetFramework).paket.resolved</PaketResolvedFilePath> | ||
<PaketRestoreRequired>true</PaketRestoreRequired> | ||
<PaketRestoreRequiredReason>references-file-or-cache-not-found</PaketRestoreRequiredReason> | ||
</PropertyGroup> | ||
|
||
<!-- Step 2 a Detect changes in references file --> | ||
<PropertyGroup Condition="Exists('$(PaketOriginalReferencesFilePath)') AND Exists('$(PaketReferencesCachedFilePath)') "> | ||
<PaketRestoreCachedHash>$([System.IO.File]::ReadAllText('$(PaketReferencesCachedFilePath)'))</PaketRestoreCachedHash> | ||
<PaketRestoreReferencesFileHash>$([System.IO.File]::ReadAllText('$(PaketOriginalReferencesFilePath)'))</PaketRestoreReferencesFileHash> | ||
<PaketRestoreRequiredReason>references-file</PaketRestoreRequiredReason> | ||
<PaketRestoreRequired Condition=" '$(PaketRestoreReferencesFileHash)' == '$(PaketRestoreCachedHash)' ">false</PaketRestoreRequired> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="!Exists('$(PaketOriginalReferencesFilePath)') AND !Exists('$(PaketReferencesCachedFilePath)') "> | ||
<!-- If both don't exist there is nothing to do. --> | ||
<PaketRestoreRequired>false</PaketRestoreRequired> | ||
</PropertyGroup> | ||
|
||
<!-- Step 2 b detect relevant changes in project file (new targetframework) --> | ||
<PropertyGroup Condition=" !Exists('$(PaketResolvedFilePath)') AND '$(TargetFramework)' != '' "> | ||
<PaketRestoreRequired>true</PaketRestoreRequired> | ||
<PaketRestoreRequiredReason>target-framework '$(TargetFramework)'</PaketRestoreRequiredReason> | ||
</PropertyGroup> | ||
|
||
<!-- Step 3 Restore project specific stuff if required --> | ||
<Warning Condition=" '$(PaketRestoreRequired)' == 'true' " Text="Detected a change ('$(PaketRestoreRequiredReason)') in the project file '$(MSBuildProjectFullPath)', calling paket restore" /> | ||
<Exec Command='$(PaketCommand) restore --project "$(MSBuildProjectFullPath)"' Condition=" '$(PaketRestoreRequired)' == 'true' " ContinueOnError="false" /> | ||
|
||
<!-- This shouldn't actually happen, but just to be sure. --> | ||
<Error Condition=" !Exists('$(PaketResolvedFilePath)') AND '$(TargetFramework)' != '' " Text="A paket file for the framework '$(TargetFramework)' is missing. Please delete 'paket-files/paket.restore.cached' and call 'paket restore'." /> | ||
|
||
<!-- Step 4 forward all msbuild properties (PackageReference, DotNetCliToolReference) to msbuild --> | ||
<ReadLinesFromFile Condition="Exists('$(PaketResolvedFilePath)')" File="$(PaketResolvedFilePath)" > | ||
<Output TaskParameter="Lines" ItemName="PaketReferencesFileLines"/> | ||
</ReadLinesFromFile> | ||
|
||
<ItemGroup Condition=" Exists('$(PaketResolvedFilePath)') AND '@(PaketReferencesFileLines)' != '' " > | ||
<PaketReferencesFileLinesInfo Include="@(PaketReferencesFileLines)" > | ||
<PackageName>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[0])</PackageName> | ||
<PackageVersion>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[1])</PackageVersion> | ||
</PaketReferencesFileLinesInfo> | ||
<PackageReference Include="%(PaketReferencesFileLinesInfo.PackageName)"> | ||
<Version>%(PaketReferencesFileLinesInfo.PackageVersion)</Version> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<PaketCliToolFilePath>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).paket.clitools</PaketCliToolFilePath> | ||
</PropertyGroup> | ||
|
||
<ReadLinesFromFile File="$(PaketCliToolFilePath)" > | ||
<Output TaskParameter="Lines" ItemName="PaketCliToolFileLines"/> | ||
</ReadLinesFromFile> | ||
|
||
<ItemGroup Condition=" '@(PaketCliToolFileLines)' != '' " > | ||
<PaketCliToolFileLinesInfo Include="@(PaketCliToolFileLines)" > | ||
<PackageName>$([System.String]::Copy('%(PaketCliToolFileLines.Identity)').Split(',')[0])</PackageName> | ||
<PackageVersion>$([System.String]::Copy('%(PaketCliToolFileLines.Identity)').Split(',')[1])</PackageVersion> | ||
</PaketCliToolFileLinesInfo> | ||
<DotNetCliToolReference Include="%(PaketCliToolFileLinesInfo.PackageName)"> | ||
<Version>%(PaketCliToolFileLinesInfo.PackageVersion)</Version> | ||
</DotNetCliToolReference> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<RestoreConfigFile>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).NuGet.Config</RestoreConfigFile> | ||
</PropertyGroup> | ||
|
||
</Target> | ||
|
||
<Target Name="PaketDisableDirectPack" AfterTargets="_IntermediatePack" BeforeTargets="GenerateNuspec" Condition="('$(IsPackable)' == '' Or '$(IsPackable)' == 'true') And Exists('$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).references')" > | ||
<PropertyGroup> | ||
<ContinuePackingAfterGeneratingNuspec>false</ContinuePackingAfterGeneratingNuspec> | ||
</PropertyGroup> | ||
</Target> | ||
|
||
<Target Name="PaketOverrideNuspec" AfterTargets="GenerateNuspec" Condition="('$(IsPackable)' == '' Or '$(IsPackable)' == 'true') And Exists('$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).references')" > | ||
<PropertyGroup> | ||
<PaketProjectFile>$(MSBuildProjectDirectory)/$(MSBuildProjectFile)</PaketProjectFile> | ||
<ContinuePackingAfterGeneratingNuspec>true</ContinuePackingAfterGeneratingNuspec> | ||
<UseNewPack>false</UseNewPack> | ||
<UseNewPack Condition=" '$(NuGetToolVersion)' != '4.0.0' ">true</UseNewPack> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<_NuspecFiles Include="$(BaseIntermediateOutputPath)*.nuspec"/> | ||
</ItemGroup> | ||
|
||
<Exec Command='$(PaketCommand) fix-nuspecs files "@(_NuspecFiles)" project-file "$(PaketProjectFile)" ' Condition="@(_NuspecFiles) != ''" /> | ||
|
||
<ConvertToAbsolutePath Condition="@(_NuspecFiles) != ''" Paths="@(_NuspecFiles)"> | ||
<Output TaskParameter="AbsolutePaths" PropertyName="NuspecFileAbsolutePath" /> | ||
</ConvertToAbsolutePath> | ||
|
||
<!-- Call Pack --> | ||
<PackTask Condition="$(UseNewPack)" | ||
PackItem="$(PackProjectInputFile)" | ||
PackageFiles="@(_PackageFiles)" | ||
PackageFilesToExclude="@(_PackageFilesToExclude)" | ||
PackageVersion="$(PackageVersion)" | ||
PackageId="$(PackageId)" | ||
Title="$(Title)" | ||
Authors="$(Authors)" | ||
Description="$(Description)" | ||
Copyright="$(Copyright)" | ||
RequireLicenseAcceptance="$(PackageRequireLicenseAcceptance)" | ||
LicenseUrl="$(PackageLicenseUrl)" | ||
ProjectUrl="$(PackageProjectUrl)" | ||
IconUrl="$(PackageIconUrl)" | ||
ReleaseNotes="$(PackageReleaseNotes)" | ||
Tags="$(PackageTags)" | ||
DevelopmentDependency="$(DevelopmentDependency)" | ||
BuildOutputInPackage="@(_BuildOutputInPackage)" | ||
TargetPathsToSymbols="@(_TargetPathsToSymbols)" | ||
TargetFrameworks="@(_TargetFrameworks)" | ||
AssemblyName="$(AssemblyName)" | ||
PackageOutputPath="$(PackageOutputAbsolutePath)" | ||
IncludeSymbols="$(IncludeSymbols)" | ||
IncludeSource="$(IncludeSource)" | ||
PackageTypes="$(PackageType)" | ||
IsTool="$(IsTool)" | ||
RepositoryUrl="$(RepositoryUrl)" | ||
RepositoryType="$(RepositoryType)" | ||
SourceFiles="@(_SourceFiles->Distinct())" | ||
NoPackageAnalysis="$(NoPackageAnalysis)" | ||
MinClientVersion="$(MinClientVersion)" | ||
Serviceable="$(Serviceable)" | ||
FrameworkAssemblyReferences="@(_FrameworkAssemblyReferences)" | ||
ContinuePackingAfterGeneratingNuspec="$(ContinuePackingAfterGeneratingNuspec)" | ||
NuspecOutputPath="$(BaseIntermediateOutputPath)" | ||
IncludeBuildOutput="$(IncludeBuildOutput)" | ||
BuildOutputFolder="$(BuildOutputTargetFolder)" | ||
ContentTargetFolders="$(ContentTargetFolders)" | ||
RestoreOutputPath="$(RestoreOutputAbsolutePath)" | ||
NuspecFile="$(NuspecFileAbsolutePath)" | ||
NuspecBasePath="$(NuspecBasePath)" | ||
NuspecProperties="$(NuspecProperties)"/> | ||
|
||
<PackTask Condition="! $(UseNewPack)" | ||
PackItem="$(PackProjectInputFile)" | ||
PackageFiles="@(_PackageFiles)" | ||
PackageFilesToExclude="@(_PackageFilesToExclude)" | ||
PackageVersion="$(PackageVersion)" | ||
PackageId="$(PackageId)" | ||
Title="$(Title)" | ||
Authors="$(Authors)" | ||
Description="$(Description)" | ||
Copyright="$(Copyright)" | ||
RequireLicenseAcceptance="$(PackageRequireLicenseAcceptance)" | ||
LicenseUrl="$(PackageLicenseUrl)" | ||
ProjectUrl="$(PackageProjectUrl)" | ||
IconUrl="$(PackageIconUrl)" | ||
ReleaseNotes="$(PackageReleaseNotes)" | ||
Tags="$(PackageTags)" | ||
TargetPathsToAssemblies="@(_TargetPathsToAssemblies->'%(FinalOutputPath)')" | ||
TargetPathsToSymbols="@(_TargetPathsToSymbols)" | ||
TargetFrameworks="@(_TargetFrameworks)" | ||
AssemblyName="$(AssemblyName)" | ||
PackageOutputPath="$(PackageOutputAbsolutePath)" | ||
IncludeSymbols="$(IncludeSymbols)" | ||
IncludeSource="$(IncludeSource)" | ||
PackageTypes="$(PackageType)" | ||
IsTool="$(IsTool)" | ||
RepositoryUrl="$(RepositoryUrl)" | ||
RepositoryType="$(RepositoryType)" | ||
SourceFiles="@(_SourceFiles->Distinct())" | ||
NoPackageAnalysis="$(NoPackageAnalysis)" | ||
MinClientVersion="$(MinClientVersion)" | ||
Serviceable="$(Serviceable)" | ||
AssemblyReferences="@(_References)" | ||
ContinuePackingAfterGeneratingNuspec="$(ContinuePackingAfterGeneratingNuspec)" | ||
NuspecOutputPath="$(BaseIntermediateOutputPath)" | ||
IncludeBuildOutput="$(IncludeBuildOutput)" | ||
BuildOutputFolder="$(BuildOutputTargetFolder)" | ||
ContentTargetFolders="$(ContentTargetFolders)" | ||
RestoreOutputPath="$(RestoreOutputAbsolutePath)" | ||
NuspecFile="$(NuspecFileAbsolutePath)" | ||
NuspecBasePath="$(NuspecBasePath)" | ||
NuspecProperties="$(NuspecProperties)"/> | ||
</Target> | ||
<!--/+:cnd:noEmit--> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,47 @@ | ||
// Available variables which can be used inside of strings. | ||
// ${workspaceRoot}: the root folder of the team | ||
// ${file}: the current opened file | ||
// ${fileBasename}: the current opened file's basename | ||
// ${fileDirname}: the current opened file's dirname | ||
// ${fileExtname}: the current opened file's extension | ||
// ${cwd}: the current working directory of the spawned process | ||
|
||
{ | ||
"version": "0.1.0", | ||
"isShellCommand": true, | ||
"showOutput": "silent", | ||
"osx": { | ||
"command": "${workspaceRoot}/build.sh" | ||
}, | ||
"windows": { | ||
"command": "${workspaceRoot}/build.cmd" | ||
}, | ||
"linux": { | ||
"command": "${workspaceRoot}/build.sh" | ||
"version": "2.0.0", | ||
"presentation": { | ||
"reveal": "silent" | ||
}, | ||
"type": "shell", | ||
"tasks": [ | ||
{ | ||
"taskName": "Default", | ||
"args": ["Default"], | ||
"isBuildCommand": true | ||
"command": "${workspaceRoot}/build.sh", | ||
"windows": { | ||
"command": "${workspaceRoot}/build.cmd" | ||
}, | ||
"taskName": "Build", | ||
"args": [ | ||
"Default" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"command": "${workspaceRoot}/build.sh", | ||
"windows": { | ||
"command": "${workspaceRoot}/build.cmd" | ||
}, | ||
"taskName": "Full Build", | ||
"args": [ | ||
"Build" | ||
], | ||
"group": "build" | ||
}, | ||
{ | ||
"command": "${workspaceRoot}/build.sh", | ||
"windows": { | ||
"command": "${workspaceRoot}/build.cmd" | ||
}, | ||
"taskName": "Watch", | ||
"args": [ | ||
"Watch" | ||
], | ||
"group": "build", | ||
"isBackground": true, | ||
"problemMatcher": [] | ||
} | ||
] | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# How to contribute | ||
|
||
## Prerequisites | ||
|
||
- [Visual Studio Code][vscode] 🙄 | ||
- [Mono][mono] | ||
- [.Net Core 2.0][dotnet] | ||
- [Node.js][nodejs] | ||
- [Yarn][yarn] | ||
|
||
## Building | ||
|
||
Everything is done via `build.cmd` \ `build.sh`. | ||
|
||
- `build Build` does a full-build, including package installation and copying some necessary files.<br/> | ||
It should always be done at least once after any clone/pull. | ||
- If a git dependency fail to build paket won't re-do it you can run their build scripts manually: | ||
- In `paket-files\github.com\fsharp\FsAutoComplete` run `build LocalRelease` | ||
- In `paket-files\github.com\fsharp-editing\Forge` run `build Build` | ||
- In VSCode two configurations are possible to run: | ||
- Use `Build and Launch Extension` | ||
- Start the `Watch` task and when a build is done start `Launch Only` | ||
|
||
## Working with FSAC | ||
|
||
1. Run `build.cmd Build` \ `build.sh Build` | ||
1. Open Ionide-vscode-fsharp in VSCode. | ||
2. Set `devMode` to `true` in `src/Core/LanguageService.fs` | ||
3. Open FSAC in VS | ||
4. Start FSAC.Suave in VS | ||
5. Press F5 in VSCode to build Ionide and start experimental instance | ||
|
||
[dotnet]: https://www.microsoft.com/net/download/core | ||
[mono]: http://www.mono-project.com/download/ | ||
[nodejs]: https://nodejs.org/en/download/ | ||
[yarn]: https://yarnpkg.com/en/docs/install | ||
[vscode]: https://code.visualstudio.com/Download |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.