You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to get EMSDK version when evaluating NativeFileReference in nuget package props or targets #61306
If we can get the version of emscripten in the build environment,
we can create backward compatible nuget packages by including the version information in the NativeFileReference path.
So, I would like you to provide a variable to get the version.
Additional context
I evaluated RuntimeEmccVersionRaw and ActualEmccVersionRaw with PropertyGroup and with NativeFileReference, but they were evaluated as empty characters. (so now fixed value is written as 2.0.23)
We can do anything we like. We live in a universe of infinite possibilities, unbound by anything but the limits of our own imaginations.
In the emsdk case, the version string reported by emcc --version is composed from the contents of two files, emscripten/emscripten-version.txt and emscripten/emscripten-revision.txt (which for us come from hand-maintained files in eng/ in emscripten.git). If we get our property to load from those files, that avoids needing to keep it up to date in multiple places.
Activity
lewing commentedon Nov 9, 2021
Assume 2.0.23 for net6.0 until further notice, we're working on an improved versioning setup.
radical commentedon Jul 25, 2023
These properties become available when
_CheckEmccIsExpectedVersiontarget is run. But we should have the fixed version available as a property.@directhex could we add the emsdk version string as a property in https://github.com/dotnet/emsdk/blob/1f68fcee45ca75a2cb780edaff1e695af4d4f787/eng/sdk_files/Emscripten.Sdk.props#L4 or similar?
directhex commentedon Jul 26, 2023
We can do anything we like. We live in a universe of infinite possibilities, unbound by anything but the limits of our own imaginations.
In the emsdk case, the version string reported by
emcc --versionis composed from the contents of two files,emscripten/emscripten-version.txtandemscripten/emscripten-revision.txt(which for us come from hand-maintained files ineng/in emscripten.git). If we get our property to load from those files, that avoids needing to keep it up to date in multiple places.Add properties `$(EmscriptenVersion)`, and `$(EmscriptenRevision)`
Add properties `$(EmscriptenVersion)`, and `$(EmscriptenRevision)` (#393