Browse Source

commit

master
binita 1 year ago
parent
commit
289501ac96
  1. 2
      .gitignore
  2. BIN
      .vs/JMEAgentSystem/v16/TestStore/0/000.testlog
  3. BIN
      .vs/JMEAgentSystem/v16/TestStore/0/testlog.manifest
  4. BIN
      Business/bin/Debug/Repository.dll
  5. BIN
      Business/bin/Debug/Repository.pdb
  6. 2
      Business/obj/Debug/Business.csproj.CoreCompileInputs.cache
  7. 1
      Business/obj/Debug/Business.csproj.FileListAbsolute.txt
  8. 15
      JMEAgentSystem/app.config
  9. BIN
      JMEAgentSystem/bin/JMEAgentSystem.dll
  10. BIN
      JMEAgentSystem/bin/JMEAgentSystem.pdb
  11. BIN
      JMEAgentSystem/bin/Repository.dll
  12. BIN
      JMEAgentSystem/bin/Repository.pdb
  13. BIN
      JMEAgentSystem/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  14. BIN
      JMEAgentSystem/obj/Debug/JMEAgentSystem.dll
  15. BIN
      JMEAgentSystem/obj/Debug/JMEAgentSystem.pdb
  16. BIN
      Repository/bin/Debug/Repository.dll
  17. BIN
      Repository/bin/Debug/Repository.pdb
  18. 2
      Repository/obj/Debug/Repository.csproj.CoreCompileInputs.cache
  19. 1
      Repository/obj/Debug/Repository.csproj.FileListAbsolute.txt
  20. BIN
      Repository/obj/Debug/Repository.dll
  21. BIN
      Repository/obj/Debug/Repository.pdb
  22. BIN
      packages/WebGrease.1.5.2/.signature.p7s
  23. BIN
      packages/WebGrease.1.5.2/WebGrease.1.5.2.nupkg
  24. BIN
      packages/WebGrease.1.5.2/lib/WebGrease.dll
  25. BIN
      packages/WebGrease.1.5.2/tools/WG.exe
  26. 90
      packages/WebGrease.1.5.2/tools/install.ps1
  27. 63
      packages/WebGrease.1.5.2/tools/uninstall.ps1

2
.gitignore

@ -1,6 +1,5 @@
/.vs/JMEAgentSystem/config/applicationhost.config
/.vs/JMEAgentSystem/v16/.suo
/API/API.csproj
/API/bin/Debug/API.dll
/API/bin/Debug/API.pdb
/API/bin/Debug/Common.dll
@ -557,7 +556,6 @@
/Common/obj/Debug/Common.dll
/Common/obj/Debug/Common.pdb
/Common/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
/JMEAgentSystem.sln
/JMEAgentSystem/bin/Business.dll
/JMEAgentSystem/bin/Business.pdb
/JMEAgentSystem/bin/Common.dll

BIN
.vs/JMEAgentSystem/v16/TestStore/0/000.testlog

BIN
.vs/JMEAgentSystem/v16/TestStore/0/testlog.manifest

BIN
Business/bin/Debug/Repository.dll

BIN
Business/bin/Debug/Repository.pdb

2
Business/obj/Debug/Business.csproj.CoreCompileInputs.cache

@ -1 +1 @@
b22bcc85d9679d57062ea2aa39ca08bbb582f25a
da07f6758244d471e97edb1e72de3c9c3705929b

1
Business/obj/Debug/Business.csproj.FileListAbsolute.txt

@ -58,3 +58,4 @@ E:\#JME-JAPAN\12. Agent_Login\Business\obj\Debug\Business.csproj.CoreCompileInpu
E:\#JME-JAPAN\12. Agent_Login\Business\obj\Debug\Business.csproj.CopyComplete
E:\#JME-JAPAN\12. Agent_Login\Business\obj\Debug\Business.dll
E:\#JME-JAPAN\12. Agent_Login\Business\obj\Debug\Business.pdb
E:\#JME-JAPAN\12. Agent_Login\Business\bin\Debug\WebGrease.dll

15
JMEAgentSystem/app.config

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.5.1.25624" newVersion="1.5.1.25624" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

BIN
JMEAgentSystem/bin/JMEAgentSystem.dll

BIN
JMEAgentSystem/bin/JMEAgentSystem.pdb

BIN
JMEAgentSystem/bin/Repository.dll

BIN
JMEAgentSystem/bin/Repository.pdb

BIN
JMEAgentSystem/obj/Debug/DesignTimeResolveAssemblyReferences.cache

BIN
JMEAgentSystem/obj/Debug/JMEAgentSystem.dll

BIN
JMEAgentSystem/obj/Debug/JMEAgentSystem.pdb

BIN
Repository/bin/Debug/Repository.dll

BIN
Repository/bin/Debug/Repository.pdb

2
Repository/obj/Debug/Repository.csproj.CoreCompileInputs.cache

@ -1 +1 @@
4be122ccd1bb5f97aa37e3b5aafe2729269f5949
ca84c5f48d720dd34b85967c092737ef02f3855a

1
Repository/obj/Debug/Repository.csproj.FileListAbsolute.txt

@ -36,3 +36,4 @@ E:\#JME-JAPAN\12. Agent_Login\Repository\obj\Debug\Repository.csproj.CoreCompile
E:\#JME-JAPAN\12. Agent_Login\Repository\obj\Debug\Repository.csproj.CopyComplete
E:\#JME-JAPAN\12. Agent_Login\Repository\obj\Debug\Repository.dll
E:\#JME-JAPAN\12. Agent_Login\Repository\obj\Debug\Repository.pdb
E:\#JME-JAPAN\12. Agent_Login\Repository\bin\Debug\WebGrease.dll

BIN
Repository/obj/Debug/Repository.dll

BIN
Repository/obj/Debug/Repository.pdb

BIN
packages/WebGrease.1.5.2/.signature.p7s

BIN
packages/WebGrease.1.5.2/WebGrease.1.5.2.nupkg

BIN
packages/WebGrease.1.5.2/lib/WebGrease.dll

BIN
packages/WebGrease.1.5.2/tools/WG.exe

90
packages/WebGrease.1.5.2/tools/install.ps1

@ -0,0 +1,90 @@
param($installPath, $toolsPath, $package, $project)
# Return a relative path with reference to root as Uri object
# $rootPath - root path
# $relativePath - relative path
# $appendToRelativePath - Optional parameter. If provided will be appended to relative Path using Path.Combine()
Function GetRelativeUri($rootPath, $relativePath, $appendToRelativePath)
{
if($rootPath -eq $null)
{
return $null
}
if($relativePath -eq $null)
{
return $null
}
$rootUri = new-object system.Uri($rootPath)
$targetPath = $relativePath
# If appendToRelativePath is provided then use it
if($appendToRelativePath -ne $null)
{
$targetPath = [io.path]::Combine($relativePath, $appendToRelativePath)
}
$targetUri = new-object system.Uri($targetPath)
$relativeUri = $rootUri.MakeRelativeUri($targetUri)
return $relativeUri
}
# Visual Studio execution done via NuGet Package Manager
Function VSExecution($installPath, $package, $project)
{
#$project.DTE.ExecuteCommand("File.SaveAll", [system.string]::Empty)
# Get the msbuild version of the project and add the import
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1
# add a property for us to be able to reference the path where the package was installed
$relativePackageUri = GetRelativeUri $project.FullName $installPath"\lib"
$msbuild.Xml.AddProperty("WebGreaseLibPath", $relativePackageUri.ToString().Replace([System.IO.Path]::AltDirectorySeparatorChar, [System.IO.Path]::DirectorySeparatorChar))
# save the project
$project.Save()
}
# Command line execution done by any external tool (For example, NuGetUpdater)
# $package - package id
# $project - parameter value is path to Project file in this case.
Function CommandLineExecution($installPath, $package, $project)
{
[Reflection.Assembly]::LoadWithPartialName("Microsoft.Build")
[Reflection.Assembly]::LoadWithPartialName("System.Xml")
[Reflection.Assembly]::LoadWithPartialName("System.Xml.Linq")
# Get the msbuild version of the project and add the import
$projXDoc = [System.Xml.Linq.XDocument]::Load($project)
$defaultNameSpace = $projXDoc.Root.GetDefaultNamespace()
$propertyGroup = [System.Xml.Linq.XName]::Get("PropertyGroup", $defaultNameSpace.NamespaceName)
$webGreaseBuildLocation = [System.Xml.Linq.XName]::Get("WebGreaseLibPath", $defaultNameSpace.NamespaceName)
# add a property for us to be able to reference the path where the package was installed
$relativePackageUri = GetRelativeUri $project.FullName $installPath"\lib"
$propGroupElement = $projXDoc.Root.Elements($propertyGroup) | Select-Object -First 1
IF ($propGroupElement -ne $null)
{
$newElement = new-object System.Xml.Linq.XElement($webGreaseBuildLocation, $relativePackageUri.ToString().Replace([System.IO.Path]::AltDirectorySeparatorChar, [System.IO.Path]::DirectorySeparatorChar))
$propGroupElement.Add($newElement)
}
# save the project
$projXDoc.Save($project)
}
IF ($project -is [system.string])
{
CommandLineExecution $installPath $package $project
}
ELSE
{
VSExecution $installPath $package $project
}

63
packages/WebGrease.1.5.2/tools/uninstall.ps1

@ -0,0 +1,63 @@
param($installPath, $toolsPath, $package, $project)
# Visual Studio execution done via NuGet Package Manager
Function VSExecution($toolsPath, $project)
{
$project.DTE.ExecuteCommand("File.SaveAll", [system.string]::Empty)
# Get the msbuild version of the project and add the import
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1
# now remove our property that points to this package path, "WebGreaseLibPath"
foreach ($property in $msbuild.Properties)
{
if ($property.Name -eq "WebGreaseLibPath")
{
$propertyToRemove = $property
}
}
if ($propertyToRemove -ne $null)
{
$propertyToRemove.Project.RemoveProperty($propertyToRemove)
$project.Save()
}
$project.DTE.ExecuteCommand("File.SaveAll", [system.string]::Empty)
}
# Command line execution done by any external tool (For example, NuGetUpdater)
# $project - parameter value is path to Project file in this case.
Function CommandLineExecution($toolsPath, $project)
{
[Reflection.Assembly]::LoadWithPartialName("System.Xml")
[Reflection.Assembly]::LoadWithPartialName("System.Xml.Linq")
$projXDoc = [System.Xml.Linq.XDocument]::Load($project)
$defaultNameSpace = $projXDoc.Root.GetDefaultNamespace()
$xmlReader = $projXDoc.CreateReader()
$namespaceManager = new-object System.Xml.XmlNamespaceManager($xmlReader.NameTable)
$namespaceManager.AddNamespace("my", $defaultNameSpace.NamespaceName)
$msnRfPackageElement = [System.Xml.XPath.Extensions]::XPathSelectElement($projXDoc.Root, "//my:WebGreaseLibPath", $namespaceManager)
if($msnRfPackageElement -ne $null)
{
$msnRfPackageElement.Remove()
}
# save the project
$projXDoc.Save($project)
}
IF ($project -is [system.string])
{
CommandLineExecution $toolsPath $project
}
ELSE
{
VSExecution $toolsPath $project
}
Loading…
Cancel
Save