Skip to content

Commit

Permalink
Merge pull request #192 from unoplatform/dev/jela/devserver-error
Browse files Browse the repository at this point in the history
fix: Fail the build when a project uses the deprecated CLI package
  • Loading branch information
jeromelaban authored Apr 14, 2020
2 parents 2eb4131 + 3f1ffe8 commit 1e4fc8b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .vsts-ci-linux.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parameters:
jobName: ''
linux_container: ''
linux_vmImage: 'ubuntu-18.04'
linux_vmImage: 'ubuntu-latest'
netcore_version: ''

jobs:
Expand Down Expand Up @@ -86,6 +86,9 @@ jobs:
OverWrite: false
flattenFolders: false

- bash: rm -fr ~/emsdk
displayName: Cleanup Emscripten folder to run tests

- bash: |
cd $(build.sourcesdirectory)/src/Uno.Wasm.AotTests/bin/Release/netstandard2.0/dist
python server.py &
Expand Down
10 changes: 8 additions & 2 deletions src/Uno.Wasm.Bootstrap/build/Uno.Wasm.Bootstrap.targets
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,14 @@
<Delete Files="@(_DistFilesToDelete)" />
</Target>

<Target Name="_ValidateLegacyCLIPackage" BeforeTargets="CoreCompile">
<PropertyGroup>
<_CliToolRefs>@(DotNetCliToolReference)</_CliToolRefs>
</PropertyGroup>

<Import Project="Uno.Wasm.Bootstrap.Publish.targets"/>

<Error Text="The current project is referencing the deprecated Uno.Wasm.Bootstrap.Cli package. Remove it manually in the project file and add a reference to Uno.Wasm.Bootstrap.DevServer instead. For more information visit: https://github.com/unoplatform/Uno.Wasm.Bootstrap#upgrading-from-previous-versions-of-the-unowasmbootstrap-package"
Condition="$(_CliToolRefs.Contains('Uno.Wasm.Bootstrap.Cli'))"/>
</Target>

<Import Project="Uno.Wasm.Bootstrap.Publish.targets"/>
</Project>

0 comments on commit 1e4fc8b

Please sign in to comment.