eXpandFramework / eXpand

DevExpress XAF (eXpressApp) extension framework. ๐—น๐—ถ๐—ป๐—ธ๐—ฒ๐—ฑ๐—ถ๐—ป.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ, ๐˜†๐—ผ๐˜‚๐˜๐˜‚๐—ฏ๐—ฒ.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ and ๐˜๐˜„๐—ถ๐˜๐˜๐—ฒ๐—ฟ @๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ and or simply ๐—ฆ๐˜๐—ฎ๐—ฟ/๐˜„๐—ฎ๐˜๐—ฐ๐—ต this repository and get notified from ๐—š๐—ถ๐˜๐—›๐˜‚๐—ฏ
http://expand.expandframework.com
Microsoft Public License
222 stars 115 forks source link

File not Found in Build Script for Devexpress.XAF #653

Closed rSeeFip closed 4 years ago

rSeeFip commented 4 years ago

Hello.

when i try to build Devexpress.XAF Modules i'm firstly run the go.ps1

But since actual Release i got File not found error the script should use path

C:\Program Files (x86)\DevExpress 19.2\Components\System\Components\packages

but it use only C:\Program and says path not found

image

apobekiaris commented 4 years ago

hmm i am not sure if go.ps1 works with no problems can you try

& .\tools\Build\BuildPipeline.ps1 -CustomVersion $DXVersion -dxapifeed $env:localDXFeed -branch "master"
apobekiaris commented 4 years ago

the script i posted is used from AzureDevOps so it works for sure

rSeeFip commented 4 years ago

I tried but i get another file not found exception

image

apobekiaris commented 4 years ago

hmm the exception is clear a System assembly is missing, When I run in my system

Get-XAFLatestMinors

Major  Minor  Build  Revision
-----  -----  -----  --------
19     2      5      0
19     1      8      0
18     2      11     0

The pipeline definition is loaded at the same folder BuildPipeline.yml and the Compatibity Matrix is green for 18.2.11 https://github.com/eXpandFramework/DevExpress.XAF#compatibility-matrix. The project does not use loca dependecies, they all come from Nuget.

Unfortunately i cannot tell why it fails in your system. Try adding the missing assembly to the GAC

apobekiaris commented 4 years ago

what the version of XpandPwsh module?

get-module Xpandpwsh -ListAvailable

    Directory: C:\Work\eXpandFramework\XpandPwsh

ModuleType Version    Name                                PSEdition ExportedCommands
---------- -------    ----                                --------- ----------------
Script     1.192.35   XpandPwsh                           Desk      {New-GithubReleaseNotesTemplate, Close-GithubIssue, Update-NugetProjectVersion, Find-XpandNugetPackageโ€ฆ}
apobekiaris commented 4 years ago

try uninstall all version of XpandPwsh from your system and then run the build script

uninstall-module XpandPwsh -AllVersions
rSeeFip commented 4 years ago

always miss System.ComponentModel.Annotations
image

I've installed it manually from nuget get in the Modules Extensions Project, but not helps.

rSeeFip commented 4 years ago

actual installed XpandPwsh image

apobekiaris commented 4 years ago

first the latest version of XpandPwsh is

find-module xpandpwsh

Version              Name                                Repository           Description
-------              ----                                ----------           -----------
1.192.35             XpandPwsh                           PSGallery            Various functions working with DevExpresโ€ฆ

and you use .14

maybe there is

rSeeFip commented 4 years ago

I've uninstall all and then run go.ps1

so thru go.ps1 old version get installed

apobekiaris commented 4 years ago

ok i got what is happening now you unde powershell but this is designed to run over powershell.core so

dotnet tool install --global PowerShell
pwsh
& .\BuildPipeline.ps1
rSeeFip commented 4 years ago

for note

i've uninstall XpandPwsh, manually install Version 1.192.35 sucessfully, after running go.ps1 i got two versions 1.192.35 and 1.92.14

apobekiaris commented 4 years ago

.14 is correct version as it is installed with the latest source u can upgrade if u wish though by installing the latest XpandPwsh first and then running the build

apobekiaris commented 4 years ago

it is not required to update to latest

rSeeFip commented 4 years ago

i 've testet with .35 and .14 and both. Not work. With using of go.ps1 i get always folder C:\Program not exists, sure it calls C:\Program Files... by using of .\tools\Build\BuildPipeline.ps1 -CustomVersion $DXVersion -dxapifeed $env:localDXFeed -branch "master"

i got issue "miss System.ComponentModel.Annotations 4.2" which when i google is a steady problem in gac i have System.ComponentModel.Annotations 4.8

All what i have change from last sucessfully build 2 weeks ago id installing devexpress 19.2.5 and expand , no windows updates or something else

this why i'am surprised how can this happen

rSeeFip commented 4 years ago

i've checked backup clone from production system last month ago their was too

System.ComponentModel.Annotations 4.8

in GAC, so it could not be to changing module from 4,2 to 4,8

apobekiaris commented 4 years ago

it seems that u do not understand what I said in https://github.com/eXpandFramework/eXpand/issues/653#issuecomment-571606278

the Annotations problem is because you run the script from powershell.exe and not from pwsh.exe. pwsh.exe is the powershell.core version which u have to install in your system in order to run the scripts. Once install you Start/Run --> pwsh.exe and in the command prompt you run the scripts.

apobekiaris commented 4 years ago

all other suggestions about GAC etc. are not valid

rSeeFip commented 4 years ago

i understand i use pwsh.exe image

apobekiaris commented 4 years ago

check how is done in azure

https://github.com/eXpandFramework/DevExpress.XAF/blob/ab6e69f927ac369530c4ca58f2075c656ee3d039/tools/Build/BuildPipeline.yml#L32-L46

copy paste the lines and explicity declare all parameters

apobekiaris commented 4 years ago

the error u get says that the DX package source is not found which means that u either do not have DX installed or u installed it in a non default path

rSeeFip commented 4 years ago

No, thats what i've checked in first topic in this chat, folder and files exists image

apobekiaris commented 4 years ago

did you tried to use your DX feed instead of your local folder as a source? e.g. https://nuget.devexpress.com/88luCgoeuPFT....

rSeeFip commented 4 years ago

ok, i used as package Source my DX feed, it's little better . it found Web.Themes and Scheduler.Web libs but crash by finding Charts lib and further image

so i'm not able to solve this, i must wait for next expand.lab build

apobekiaris commented 4 years ago

still is on local source somehow try the following search and replace the C:\Program files... with your nuget feed to all paket.dependencies and paket.lock files found in the repo source

expand commented 4 years ago

The DevExpress.XAF repository includes commits that relate to this task:

Please update the related Nuget packages and test if issues is addressed. These are nightly nuget packages available only from our NugetServer.

If you do not use the Xpand.XAF.Modules directly but through a module of the main eXpandFramework project, please wait for the bot to notify you again when integration is finished or update the related packages manually.

Thanks a lot for your contribution.

expand commented 4 years ago

The DevExpress.XAF repository includes commits that relate to this task:

Please update the related Nuget packages and test if issues is addressed. These are nightly nuget packages available only from our NugetServer.

If you do not use the Xpand.XAF.Modules directly but through a module of the main eXpandFramework project, please wait for the bot to notify you again when integration is finished or update the related packages manually.

Thanks a lot for your contribution.

dsikic commented 4 years ago

Use your DX nuget feed not @apobekiaris 's URL from above. Example: packages

dsikic commented 4 years ago

More specifically in paket.lock where it says remote: C:\Program change to remote: <your DX nuget feed ending with /api>

dsikic commented 4 years ago

@apobekiaris Please change paket.lock line to end with \ and wrap with. Like so:

https://github.com/eXpandFramework/eXpand/commit/18c20136af577e31a7d6a13a34d241eec5ad189e

expand commented 4 years ago

Closing issue for age. Feel free to reopen it at any time.

.Thank you for your contribution.